From 5dc7c52d41eb65deecd1e92024d59095ccfc3a15 Mon Sep 17 00:00:00 2001 From: boqiu <82121246@qq.com> Date: Thu, 24 Oct 2024 20:01:57 +0800 Subject: [PATCH] fix unit test failures --- node/sync/src/controllers/serial.rs | 4 ---- node/sync/src/service.rs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/node/sync/src/controllers/serial.rs b/node/sync/src/controllers/serial.rs index 7343444..876f6d7 100644 --- a/node/sync/src/controllers/serial.rs +++ b/node/sync/src/controllers/serial.rs @@ -89,9 +89,6 @@ pub struct SerialSyncController { /// Cache for storing and serving gossip messages. file_location_cache: Arc, - - /// Whether to find files from neighbors only. - neighbors_only: bool, } impl SerialSyncController { @@ -118,7 +115,6 @@ impl SerialSyncController { ctx, store, file_location_cache, - neighbors_only: true, } } diff --git a/node/sync/src/service.rs b/node/sync/src/service.rs index 3fd12f6..9c4ae18 100644 --- a/node/sync/src/service.rs +++ b/node/sync/src/service.rs @@ -1571,7 +1571,7 @@ mod tests { .request(SyncRequest::SyncFile { tx_seq }) .await .unwrap(); - + receive_dial(&mut runtime, &sync_send).await; receive_chunk_request(