Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492205
D4248.id14327.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
487 B
Referenced Files
None
Subscribers
None
D4248.id14327.diff
View Options
diff --git a/services/commtest/tests/lib/tools.rs b/services/commtest/tests/lib/tools.rs
--- a/services/commtest/tests/lib/tools.rs
+++ b/services/commtest/tests/lib/tools.rs
@@ -18,5 +18,12 @@
TonicStatus(tonic::Status),
}
+pub const GRPC_METADATA_SIZE_BYTES: usize = 5;
+
+#[allow(dead_code)]
+pub fn get_grpc_chunk_size_limit() -> usize {
+ (ByteSize::mib(4).as_u64() as usize) - GRPC_METADATA_SIZE_BYTES
+}
+
#[allow(dead_code)]
pub const ATTACHMENT_DELIMITER: &str = ";";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 10:29 PM (19 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678535
Default Alt Text
D4248.id14327.diff (487 B)
Attached To
Mode
D4248: [services] Tests - Add chunk limit to tools
Attached
Detach File
Event Timeline
Log In to Comment