Skip to content

Commit fdffd2c

Browse files
committed
No need to call reset twice.
1 parent f98057d commit fdffd2c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

protocol/hashing.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func Keccak256(data []byte) [32]byte {
2525
h.Write(data) //nolint:revive // keccak256 never returns an error
2626
var out [32]byte
2727
copy(out[:], h.Sum(nil))
28-
h.Reset()
2928
hasherPool.Put(h)
3029
return out
3130
}

0 commit comments

Comments
 (0)