From 0186a985604c7a11a980c5c3aca1b37e2a723de2 Mon Sep 17 00:00:00 2001 From: Brian Hechinger Date: Thu, 11 Apr 2024 12:17:01 +0100 Subject: [PATCH] Just a loop wasn't enough, it goes too fast (#185) * Just a loop wasn't enough, it goes too fast * remove test --- crates/node/README.md | 2 ++ crates/node/src/main.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/node/README.md b/crates/node/README.md index 13d411b7..5c37f283 100644 --- a/crates/node/README.md +++ b/crates/node/README.md @@ -91,3 +91,5 @@ to prevent it from binding GPU's USB controller, so it must be fixed after boot. echo "0000:01:00.2" | sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind echo "0000:01:00.2" | sudo tee /sys/bus/pci/drivers/vfio-pci/bind ``` + +#TEST diff --git a/crates/node/src/main.rs b/crates/node/src/main.rs index d0a1e9aa..9caab3f8 100644 --- a/crates/node/src/main.rs +++ b/crates/node/src/main.rs @@ -388,6 +388,8 @@ async fn p2p_beacon(config: P2PBeaconConfig) -> Result<()> { tracing::error!("failed to resolve {}: {}", addr, err); } } + + tokio::time::sleep(Duration::from_secs(1)).await; } try_count += 1;