Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3397149
D5526.id18154.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
532 B
Referenced Files
None
Subscribers
None
D5526.id18154.diff
View Options
diff --git a/services/tunnelbroker/src/constants.rs b/services/tunnelbroker/src/constants.rs
new file mode 100644
--- /dev/null
+++ b/services/tunnelbroker/src/constants.rs
@@ -0,0 +1,2 @@
+pub const GRPC_TX_QUEUE_SIZE: usize = 32;
+pub const GRPC_PING_INTERVAL_MS: u64 = 3000;
diff --git a/services/tunnelbroker/src/main.rs b/services/tunnelbroker/src/main.rs
--- a/services/tunnelbroker/src/main.rs
+++ b/services/tunnelbroker/src/main.rs
@@ -1,3 +1,5 @@
+pub mod constants;
+
#[cxx::bridge]
mod ffi {
unsafe extern "C++" {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 2, 4:09 PM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2608159
Default Alt Text
D5526.id18154.diff (532 B)
Attached To
Mode
D5526: [services] Tunnelbroker - Adding of `constants.rs` file
Attached
Detach File
Event Timeline
Log In to Comment