Skip to content

Commit

Permalink
Clarify that timers never terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Apr 6, 2021
1 parent 4f9ca9e commit b6c0a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-network/src/peer_set/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ where

let crawler_action = tokio::select! {
a = handshakes.next() => a.expect("handshakes never terminates, because it contains a future that never resolves"),
a = crawl_timer.next() => a.expect("crawl_timer never terminates"),
a = crawl_timer.next() => a.expect("timers never terminate"),
// turn the demand into an action, based on the crawler's current state
_ = demand_rx.next() => {
if handshakes.len() > 50 {
Expand Down

0 comments on commit b6c0a43

Please sign in to comment.