Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark committed Nov 2, 2022
1 parent 5fd1090 commit c842a48
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
18 changes: 12 additions & 6 deletions narwhal/primary/src/block_synchronizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,17 @@ impl BlockSynchronizer {
.into_iter()
.map(|(_name, _address, network_key)| network_key)
.collect();
let network = self.network.network();
let timeout = self.certificates_synchronize_timeout;
let committee = self.committee.clone();
let worker_cache = self.worker_cache.clone();
Some(
monitored_future!(Self::send_certificate_requests(
self.network.network(),
network,
network_keys,
self.certificates_synchronize_timeout,
self.committee.clone(),
self.worker_cache.clone(),
timeout,
committee,
worker_cache,
to_sync,
))
.boxed(),
Expand Down Expand Up @@ -612,9 +616,11 @@ impl BlockSynchronizer {
.unique_values()
.into_iter()
.map(|certificate| {
let timeout = self.payload_synchronize_timeout;
let payload_store = self.payload_store.clone();
monitored_future!(Self::wait_for_block_payload(
self.payload_synchronize_timeout,
self.payload_store.clone(),
timeout,
payload_store,
certificate,
))
.boxed()
Expand Down
6 changes: 4 additions & 2 deletions narwhal/primary/src/header_waiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,13 @@ impl HeaderWaiter {
// when all its parents are in the store.
let (tx_cancel, rx_cancel) = oneshot::channel();
self.pending.insert(header_id, (round, tx_cancel));
let tx_primary_messages = self.tx_primary_messages.clone();
let certificate_store = self.certificate_store.clone();
let fut = monitored_future!(Self::wait_for_parents(
missing,
network_future,
self.tx_primary_messages.clone(),
self.certificate_store.clone(),
tx_primary_messages,
certificate_store,
header,
rx_cancel,
));
Expand Down

0 comments on commit c842a48

Please sign in to comment.