Skip to content

Commit b9bb978

Browse files
committed
bitswap/messagequeue: broadcast wanthaves when supported
1 parent d5a84fd commit b9bb978

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bitswap/client/internal/messagequeue/messagequeue.go

+2
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ func (mq *MessageQueue) extractOutgoingMessage(supportsHave bool) (bsmsg.BitSwap
807807
// send a want-block instead
808808
if !supportsHave {
809809
wantType = pb.Message_Wantlist_Block
810+
} else {
811+
wantType = pb.Message_Wantlist_Have
810812
}
811813

812814
msgSize += mq.msg.AddEntry(e.Cid, e.Priority, wantType, false)

0 commit comments

Comments
 (0)