We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109ca4d commit 83b88f5Copy full SHA for 83b88f5
zebra-network/src/peer_set/set.rs
@@ -462,8 +462,14 @@ where
462
self.update_metrics();
463
464
if self.preselected_p2c_index.is_none() {
465
+ // CORRECTNESS
466
+ //
467
+ // If the channel is full, drop the demand signal rather than waiting.
468
+ // If we waited here, the crawler could deadlock sending a request to
469
+ // fetch more peers, because it also empties the channel.
470
trace!("no ready services, sending demand signal");
471
let _ = self.demand_signal.try_send(());
472
+
473
// CORRECTNESS
474
//
475
// The current task must be scheduled for wakeup every time we
0 commit comments