Skip to content

Commit 992fb74

Browse files
committed
fix tests
1 parent f7f6d78 commit 992fb74

File tree

1 file changed

+3
-3
lines changed
  • apollo-router/src/axum_factory/compression

1 file changed

+3
-3
lines changed

apollo-router/src/axum_factory/compression/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ where {
109109
match self.flush(&mut partial_output) {
110110
Err(e) => panic!("{e:?}"),
111111
Ok(_) => {
112-
let flushed = partial_output.written().len() - written;
113-
//println!("flush with buffer of size {flushed}");
112+
let len = partial_output.written().len();
113+
//println!("flush(b={b}) with buffer of size {len}");
114114
let _ = partial_output.into_inner();
115-
buf.resize(flushed, 0);
115+
buf.resize(len, 0);
116116
if let Err(_) = tx.send(Ok(buf.freeze())).await {
117117
return;
118118
}

0 commit comments

Comments
 (0)