Skip to content

Commit

Permalink
Merge pull request #2288 from RolandSherwin/fix_get_record_failure
Browse files Browse the repository at this point in the history
fix(network): return kad event dropped if we cannot get the query id
  • Loading branch information
RolandSherwin authored Oct 22, 2024
2 parents c2d698f + 76f8b1e commit b467597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sn_networking/src/event/kad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b467597

Please sign in to comment.