Skip to content

Commit c0d4984

Browse files
authored
fix: Do not send duplicate NotFound responses (#802)
The code was accidentally sending this response twice. send_blob() already sends NotFound, and it seems like it belongs more there.
1 parent eb18a89 commit c0d4984

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/provider.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ async fn transfer_collection(
452452
let (status, writer1) = send_blob(db.clone(), blob.hash, writer, buffer).await?;
453453
writer = writer1;
454454
if SentStatus::NotFound == status {
455-
write_response(&mut writer, buffer, Res::NotFound).await?;
456455
writer.finish().await?;
457456
return Ok(status);
458457
}

0 commit comments

Comments
 (0)