Page MenuHomePhabricator

D4248.id13887.diff
No OneTemporary

D4248.id13887.diff

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,13 @@
TonicStatus(tonic::Status),
}
+#[allow(dead_code)]
+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

Mime Type
text/plain
Expires
Thu, Dec 19, 8:35 PM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678780
Default Alt Text
D4248.id13887.diff (508 B)

Event Timeline