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
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
Unknown Object (File)
Thu, Jun 27, 5:45 AM
Unknown Object (File)
Thu, Jun 27, 5:44 AM
Unknown Object (File)
Wed, Jun 26, 1:51 PM
Unknown Object (File)
Tue, Jun 18, 11:29 AM
Unknown Object (File)
Tue, Jun 18, 11:29 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #15282)

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