We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6a21c commit a287a3fCopy full SHA for a287a3f
src/protocol/libp2p/bitswap/mod.rs
@@ -539,7 +539,7 @@ async fn send_response(substream: &mut Substream, entries: Vec<ResponseType>) ->
539
// Send presences in a separate message to not deal with it when batching blocks below.
540
if let Some((message, cid_count)) =
541
presences_message(entries.iter().filter_map(|entry| match entry {
542
- ResponseType::Presence { cid, presence } => Some((cid.clone(), *presence)),
+ ResponseType::Presence { cid, presence } => Some((*cid, *presence)),
543
ResponseType::Block { .. } => None,
544
}))
545
{
0 commit comments