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
F2212938: D4733.id15282.diff
Mon, Jul 8, 10:15 AM
Unknown Object (File)
Sat, Jul 6, 12:05 PM
Unknown Object (File)
Sat, Jul 6, 12:05 PM
Unknown Object (File)
Sat, Jul 6, 12:05 PM
Unknown Object (File)
Sat, Jul 6, 12:05 PM
Unknown Object (File)
Sat, Jun 29, 9:13 PM
Unknown Object (File)
Fri, Jun 28, 3:40 PM
Unknown Object (File)
Thu, Jun 27, 7:52 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