We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f6d78 commit 992fb74Copy full SHA for 992fb74
apollo-router/src/axum_factory/compression/mod.rs
@@ -109,10 +109,10 @@ where {
109
match self.flush(&mut partial_output) {
110
Err(e) => panic!("{e:?}"),
111
Ok(_) => {
112
- let flushed = partial_output.written().len() - written;
113
- //println!("flush with buffer of size {flushed}");
+ let len = partial_output.written().len();
+ //println!("flush(b={b}) with buffer of size {len}");
114
let _ = partial_output.into_inner();
115
- buf.resize(flushed, 0);
+ buf.resize(len, 0);
116
if let Err(_) = tx.send(Ok(buf.freeze())).await {
117
return;
118
}
0 commit comments