Page MenuHomePhabricator

[identity] Update SignedDeviceList::from_str to return tonic::Status
ClosedPublic

Authored by bartek on Sep 2 2024, 11:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 15, 4:05 AM
Unknown Object (File)
Thu, Mar 6, 8:54 PM
Unknown Object (File)
Mar 1 2025, 2:59 AM
Unknown Object (File)
Feb 26 2025, 11:38 AM
Unknown Object (File)
Feb 26 2025, 11:38 AM
Unknown Object (File)
Feb 26 2025, 11:37 AM
Unknown Object (File)
Feb 22 2025, 12:47 PM
Unknown Object (File)
Feb 15 2025, 9:28 PM
Subscribers

Details

Summary

Noticed that we're using type Error = serde_json::Error in FromStr, but we map it everywhere to tonic::Status.
Refactored this to map it only in one place and avoid adding another mapping in the next diff

Depends on D13222

Test Plan

cargo build -p identity

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable