This commit is contained in:
Diva M
2022-12-22 17:47:36 -05:00
parent 48ff56d9cb
commit 3643f5cc19

View File

@@ -304,7 +304,7 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
BlockOrBlob::Blob(maybe_sidecar) => info.add_sidecar_response(maybe_sidecar),
}
if info.is_finished() {
// If the request is finished, unqueue everything
// If the request is finished, dequeue everything
let (chain_id, batch_id, info) = entry.remove();
Some((chain_id, batch_id, info.into_responses()))
} else {
@@ -372,7 +372,7 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
BlockOrBlob::Blob(maybe_sidecar) => info.add_sidecar_response(maybe_sidecar),
}
if info.is_finished() {
// If the request is finished, unqueue everything
// If the request is finished, dequeue everything
let (batch_id, info) = entry.remove();
Some((batch_id, info.into_responses()))
} else {