From b46529682cdbc0dc3fe4377047635407e212092f Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Fri, 22 Aug 2025 13:50:52 +0200 Subject: [PATCH] Fix compilation errors: remove get_cookie_path call and fix type conversion --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3699ec9..433b76e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -432,8 +432,7 @@ async fn main() -> Result<()> { .set(PeerMap::new(HashMap::new())) .expect("PeerMap initialization failed"); - // Connect the rpc daemon with retry logic - let cookie_path = config.get_cookie_path().ok(); + // Connect the rpc daemon with retry logic let mut retry_count = 0; const MAX_RETRIES: u32 = 5; const RETRY_DELAY_MS: u64 = 2000; // 2 seconds initial delay @@ -451,7 +450,7 @@ async fn main() -> Result<()> { return Err(e.context("Failed to connect to Bitcoin Core after multiple attempts")); } log::warn!("Failed to connect to Bitcoin Core (attempt {}/{}): {}", retry_count, MAX_RETRIES, e); - std::thread::sleep(std::time::Duration::from_millis(RETRY_DELAY_MS * retry_count)); + std::thread::sleep(std::time::Duration::from_millis(RETRY_DELAY_MS * retry_count as u64)); } } };