Page MenuHomePhabricator

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

Authored by bartek on Mon, Sep 2, 11:27 PM.
Tags
None
Referenced Files
F2707528: D13223.id43845.diff
Sun, Sep 15, 11:58 AM
F2705946: D13223.id.diff
Sun, Sep 15, 6:17 AM
Unknown Object (File)
Sat, Sep 14, 4:17 PM
Unknown Object (File)
Sat, Sep 14, 3:29 PM
Unknown Object (File)
Fri, Sep 13, 3:25 AM
Unknown Object (File)
Thu, Sep 12, 10:38 AM
Unknown Object (File)
Wed, Sep 11, 10:27 PM
Unknown Object (File)
Mon, Sep 9, 5:25 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