Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jul 17, 2024
1 parent 8804531 commit bee26b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer_protocol/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func readMessageAfterType(msg *Message, r *expectReader, piecePool *sync.Pool) (
err = readHashRequest(r, msg)
numHashes := (r.UnreadLength() + 31) / 32
g.MakeSliceWithCap(&msg.Hashes, numHashes)
for range numHashes {
for i := int64(0); i < numHashes; i++ {
var oneHash [32]byte
_, err = io.ReadFull(r, oneHash[:])
if err != nil {
Expand Down

0 comments on commit bee26b6

Please sign in to comment.