add streaming body to requests and responses #3
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ impl SendQueue {
|
||||||
for (_, prioq) in self.items.iter_mut() {
|
for (_, prioq) in self.items.iter_mut() {
|
||||||
prioq.remove(id);
|
prioq.remove(id);
|
||||||
}
|
}
|
||||||
|
self.items.retain(|(_prio, q)| !q.is_empty());
|
||||||
}
|
}
|
||||||
fn is_empty(&self) -> bool {
|
fn is_empty(&self) -> bool {
|
||||||
self.items.iter().all(|(_k, v)| v.is_empty())
|
self.items.iter().all(|(_k, v)| v.is_empty())
|
||||||
|
|
Loading…
Reference in a new issue