Skip to content

Commit

Permalink
Sum
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson authored Feb 2, 2025
1 parent b13576b commit 64f479d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/torrent/hasher.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func NewPieceHasher(files []fileEntry, pieceLen int64, numPieces int, display Di
func (h *pieceHasher) hashPiece(piece int, hasher *hash.Hash) {
defer h.bufferPool.Put(hasher)
defer (*hasher).Reset()
h.pieces[piece] = (*hasher).Sum(b)
h.pieces[piece] = (*hasher).Sum(nil)
}

func (h *pieceHasher) hashFiles() error {
Expand Down

0 comments on commit 64f479d

Please sign in to comment.