HomePhabricator
Diffusion Comm 8e7230210185

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

Description

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

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

Reviewers: varun, will, kamil

Reviewed By: will, kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D13223

Details

Provenance
bartekAuthored on Sep 2 2024, 4:12 AM
Reviewer
will
Differential Revision
D13223: [identity] Update SignedDeviceList::from_str to return tonic::Status
Parents
rCOMMa204eb8ceed3: [identity] Verify lastPrimarySignature for singleton lists
Branches
Unknown
Tags
Unknown