From 76f8b1eb0e49f0923647b03ec0604955208400b1 Mon Sep 17 00:00:00 2001 From: Roland Sherwin Date: Tue, 22 Oct 2024 18:11:37 +0530 Subject: [PATCH] fix(network): return kad event dropped if we cannot get the query id --- sn_networking/src/event/kad.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sn_networking/src/event/kad.rs b/sn_networking/src/event/kad.rs index 77bf622fcb..8e903a00ec 100644 --- a/sn_networking/src/event/kad.rs +++ b/sn_networking/src/event/kad.rs @@ -412,6 +412,7 @@ impl SwarmDriver { let expected_answers = get_quorum_value(&cfg.get_quorum); trace!("Expecting {expected_answers:?} answers to exceed {expected_get_range:?} for record {pretty_key:?} task {query_id:?}, received {responded_peers} so far"); + } else { // return error if the entry cannot be found return Err(NetworkError::ReceivedKademliaEventDropped { query_id,