Page MenuHomePhabricator

[native/rust_library] Refactor Tonic client function name for Identity service
ClosedPublic

Authored by max on Dec 21 2022, 4:53 AM.
Tags
None
Referenced Files
F3246387: D5967.id19934.diff
Thu, Nov 14, 11:25 PM
Unknown Object (File)
Wed, Nov 13, 5:20 AM
Unknown Object (File)
Mon, Nov 11, 10:29 PM
Unknown Object (File)
Mon, Nov 4, 3:15 AM
Unknown Object (File)
Mon, Nov 4, 3:15 AM
Unknown Object (File)
Mon, Nov 4, 3:14 AM
Unknown Object (File)
Mon, Nov 4, 3:14 AM
Unknown Object (File)
Sat, Oct 26, 12:44 AM
Subscribers

Details

Summary

This diff introduces refactoring the Tonic client names for the Identity service in a Rust native library to the Client -> IdentityClient.
As we are using a single Rust library for the native which will contain clients and helper functions for all services we should refactor the Identity service-related function names to be more specific.
After this, we can add new clients for other services e.g. TunnelbrokerClient.

Linear task: ENG-1333

Test Plan

Rust library and native app are successfully built.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max held this revision as a draft.
max retitled this revision from [native/rust_library] Refactor Tonic client to use it from global to Identity service to [native/rust_library] Refactor Tonic client function name for Identity service.Dec 21 2022, 5:06 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: varun, jon.
native/native_rust_library/src/lib.rs
21–22 ↗(On Diff #19934)

We should remove the constant with the local address and pass it as a client initialization function argument.

max published this revision for review.Dec 21 2022, 6:03 AM
varun added inline comments.
native/native_rust_library/src/lib.rs
21–22 ↗(On Diff #19934)

yup

This revision is now accepted and ready to land.Dec 21 2022, 11:37 AM
max marked an inline comment as done.

Fix merging and rebasing on master.