aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm')
-rw-r--r--src/swarm/peer/handshake.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swarm/peer/handshake.rs b/src/swarm/peer/handshake.rs
index 1ca955b..769b010 100644
--- a/src/swarm/peer/handshake.rs
+++ b/src/swarm/peer/handshake.rs
@@ -148,7 +148,7 @@ async fn transmit_hello(state: &AppState, peer: &str) -> Result<()> {
if peer_state.hello_state == HelloState::Sending {
topology::change_peer(state, &mut peer_state, |p| p.hello_sent(Instant::now()));
- let wait = peer_state.next_hello_wait();
+ let wait = peer_state.next_hello_wait(Instant::now());
let next_attempt = Instant::now() + wait;
peer_state.hello_state = HelloState::AwaitingReply { next_attempt };
state.peers_due.by(next_attempt);