Skip to content

Commit

Permalink
try moving the wait (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron authored Jan 30, 2024
1 parent 3b3454e commit 7c6d780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/hotshot/src/traits/networking/web_server_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ impl<TYPES: NodeType> Inner<TYPES> {
};

while self.running.load(Ordering::Relaxed) {
async_sleep(additional_wait).await;

let endpoint = match message_purpose {
MessagePurpose::Proposal => config::get_proposal_route(view_number),
MessagePurpose::LatestQuorumProposal => config::get_latest_quorum_proposal_route(),
Expand Down Expand Up @@ -437,7 +439,6 @@ impl<TYPES: NodeType> Inner<TYPES> {
async_sleep(self.wait_between_polls).await;
}
}
async_sleep(additional_wait).await;
}
let maybe_event = receiver.try_recv();
match maybe_event {
Expand Down

0 comments on commit 7c6d780

Please sign in to comment.