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 962476a commit 1e522d0Copy full SHA for 1e522d0
src/lib.rs
@@ -541,7 +541,10 @@ impl Node {
541
let mut stop_bcast = self.stop_sender.subscribe();
542
runtime.spawn(async move {
543
// We check every 30 secs whether our last broadcast is NODE_ANN_BCAST_INTERVAL away.
544
+ #[cfg(not(test))]
545
let mut interval = tokio::time::interval(Duration::from_secs(30));
546
+ #[cfg(test)]
547
+ let mut interval = tokio::time::interval(Duration::from_secs(5));
548
loop {
549
tokio::select! {
550
_ = stop_bcast.changed() => {
0 commit comments