Skip to content

Commit be6f807

Browse files
committed
messages::serialize: use usize::MAX for tx update compression threshold
1 parent 44ac22b commit be6f807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/core/src/client/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub fn serialize(
152152
const COMPRESS_THRESHOLD_OTHER: usize = 1024;
153153
/// The threshold beyond which we start to compress messages for update messages.
154154
/// This is 4 KiB currently.
155-
const COMPRESS_THRESHOLD_UPDATE: usize = 16 * COMPRESS_THRESHOLD_OTHER;
155+
const COMPRESS_THRESHOLD_UPDATE: usize = usize::MAX;
156156
// Route to the correct compression threshold.
157157
let threshold = match msg {
158158
ServerMessage::TransactionUpdate(_) | ServerMessage::TransactionUpdateLight(_) => {

0 commit comments

Comments
 (0)