We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ea0d3 commit 63dfce1Copy full SHA for 63dfce1
hash_pool.go
@@ -13,14 +13,14 @@ func newHashPool(hfunc func() hash.Hash) *hashPool {
13
return &hashPool{&sync.Pool{New: func() interface{} { return hfunc() }}}
14
}
15
16
-func (hp *hashPool) sign(payload []byte) ([]byte, error) {
+func (hp *hashPool) sign(headerPayload []byte) ([]byte, error) {
17
hh := hp.Pool.Get().(hash.Hash)
18
defer func() {
19
hh.Reset()
20
hp.Pool.Put(hh)
21
}()
22
23
- if _, err := hh.Write(payload); err != nil {
+ if _, err := hh.Write(headerPayload); err != nil {
24
return nil, err
25
26
return hh.Sum(nil), nil
0 commit comments