Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3301269
D4707.id15226.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
619 B
Referenced Files
None
Subscribers
None
D4707.id15226.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
@@ -1,3 +1,17 @@
+use lazy_static::lazy_static;
+use std::sync::Arc;
+use tokio::runtime::{Builder, Runtime};
pub mod identity {
tonic::include_proto!("identity");
}
+
+lazy_static! {
+ pub static ref RUNTIME: Arc<Runtime> = Arc::new(
+ Builder::new_multi_thread()
+ .worker_threads(1)
+ .max_blocking_threads(1)
+ .enable_all()
+ .build()
+ .unwrap()
+ );
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 1:23 AM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2536165
Default Alt Text
D4707.id15226.diff (619 B)
Attached To
Mode
D4707: [native] create bridge module and runtime
Attached
Detach File
Event Timeline
Log In to Comment