Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2902995
D4815.id15579.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
714 B
Referenced Files
None
Subscribers
None
D4815.id15579.diff
View Options
diff --git a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
--- a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
+++ b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs
@@ -62,7 +62,6 @@
}
}
- #[instrument(skip(self))]
async fn get_user_id(
&mut self,
auth_type: AuthType,
@@ -77,6 +76,15 @@
.await
}
+ #[instrument(skip(self))]
+ fn get_user_id_blocking(
+ &mut self,
+ auth_type: AuthType,
+ user_info: String,
+ ) -> Result<Response<GetUserIdResponse>, Status> {
+ RUNTIME.block_on(self.get_user_id(auth_type, user_info))
+ }
+
#[instrument(skip(self))]
async fn verify_user_token(
&mut self,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 6, 7:55 PM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250801
Default Alt Text
D4815.id15579.diff (714 B)
Attached To
Mode
D4815: [native] add blocking version of get_user_id method
Attached
Detach File
Event Timeline
Log In to Comment