From bb2452789abe4be7d8b804620f4d5787db4ff1c0 Mon Sep 17 00:00:00 2001 From: houseme Date: Sun, 30 Aug 2026 00:55:16 +0800 Subject: [PATCH] fix(scanner): use typed activity timeout error --- crates/ecstore/src/services/notification_sys.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ecstore/src/services/notification_sys.rs b/crates/ecstore/src/services/notification_sys.rs index 5158c82a7..b69c60152 100644 --- a/crates/ecstore/src/services/notification_sys.rs +++ b/crates/ecstore/src/services/notification_sys.rs @@ -1995,9 +1995,7 @@ async fn scanner_activity_with_retry(client: &PeerRestClient, host: &str) -> Res Ok(result) => result, Err(_) => { client.evict_connection().await; - Err(Error::other(format!( - "scanner activity peer {host} timed out after retry ({SCANNER_ACTIVITY_PROBE_TIMEOUT:?})" - ))) + Err(Error::Timeout) } } }