Skip to content

Commit

Permalink
[release/v0.12.0-beta-hotfix3]: Manually apply open PR #1867: Fix com…
Browse files Browse the repository at this point in the history
…pression threshold bug
  • Loading branch information
bfops committed Oct 16, 2024
1 parent efe6487 commit c5ab7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client-api-messages/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ pub fn should_compress(len: usize) -> bool {
/// TODO(perf): measure!
const COMPRESS_THRESHOLD: usize = 1024;

len <= COMPRESS_THRESHOLD
len >= COMPRESS_THRESHOLD
}

pub fn brotli_compress(bytes: &[u8], out: &mut Vec<u8>) {
Expand Down

0 comments on commit c5ab7f1

Please sign in to comment.