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
Unknown Object (File)
Thu, Jun 27, 3:42 AM
Unknown Object (File)
Wed, Jun 26, 10:05 PM
Unknown Object (File)
Mon, Jun 24, 12:10 PM
Unknown Object (File)
Sun, Jun 23, 5:42 AM
Unknown Object (File)
Thu, Jun 20, 4:13 PM
Unknown Object (File)
Wed, Jun 19, 8:31 PM
Unknown Object (File)
Tue, Jun 18, 1:56 PM
Unknown Object (File)
Mon, Jun 17, 5:22 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
Branch
restruct-native-rust-library-refactor-client
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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.