Skip to content

Commit

Permalink
[Narwhal] Return immediately when all missing digests have been found…
Browse files Browse the repository at this point in the history
… in synchronizer (MystenLabs#9331)

## Description 

Should save 1s per request where batch does not exist locally because of
delay before retry if we just break from loop.

## Test Plan 

Unit tests
  • Loading branch information
arun-koshy authored Mar 15, 2023
1 parent c157233 commit cecadd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhal/worker/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl<V: TransactionValidator> PrimaryToWorker for PrimaryReceiverHandler<V> {
}
}
if missing.is_empty() {
break;
return Ok(anemo::Response::new(()));
}
}
Err(e) => {
Expand Down

0 comments on commit cecadd0

Please sign in to comment.