Page MenuHomePhabricator

[native] create Client struct and add method for get_user_id
ClosedPublic

Authored by varun on Aug 3 2022, 10:44 AM.
Tags
None
Referenced Files
F3543337: D4733.diff
Thu, Dec 26, 10:13 AM
Unknown Object (File)
Mon, Dec 16, 12:21 AM
Unknown Object (File)
Mon, Dec 16, 12:21 AM
Unknown Object (File)
Mon, Dec 16, 12:21 AM
Unknown Object (File)
Mon, Dec 16, 12:21 AM
Unknown Object (File)
Wed, Dec 11, 3:58 PM
Unknown Object (File)
Fri, Dec 6, 5:54 PM
Unknown Object (File)
Sun, Dec 1, 1:34 AM

Details

Summary

The two new functions are small enough that I've included them in the same diff. We construct a Client that holds an identity_client and then use the identity_client to call the GetUserID rpc

Test Plan

cargo build (will test more thoroughly once library is integrated into application)

Diff Detail

Repository
rCOMM Comm
Branch
identity-client
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Aug 3 2022, 10:57 AM
tomek added inline comments.
native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
15

We probably should introduce some kind of config to hold addresses.

This revision is now accepted and ready to land.Aug 4 2022, 2:52 AM