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)
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
Unknown Object (File)
Tue, Nov 26, 9:22 PM

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