Skip to content

Commit

Permalink
chore(network): use PUT Quorum::One for chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Dec 6, 2023
1 parent 78fafae commit 096565a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sn_client/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl Client {
};

let put_cfg = PutRecordCfg {
put_quorum: Quorum::All,
put_quorum: Quorum::One,
re_attempt: true,
verification,
};
Expand Down
6 changes: 3 additions & 3 deletions sn_networking/src/get_record_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ impl SwarmDriver {
.send(result)
.map_err(|_| Error::InternalMsgChannelDropped)?;
} else {
// Should we return a ReceivedKademliaEventDropped here? We manually perform `query.finish()` if we return
// early from accumulate fn. So the kad query should not make any more progress? Logging it here for now.
warn!("Can't locate query task {query_id:?} during GetRecord finished.");
// We manually perform `query.finish()` if we return early from accumulate fn.
// Thus we will still get FinishedWithNoAdditionalRecord.
trace!("Can't locate query task {query_id:?} during GetRecord finished. We might have already returned the result to the sender.");
}
Ok(())
}
Expand Down

0 comments on commit 096565a

Please sign in to comment.