MCPcopy Index your code
hub / github.com/riverqueue/river / Write

Method Write

rivershared/util/hashutil/hash_util.go:47–57  ·  view source on GitHub ↗

Write writes bytes to the underlying hash.

(data []byte)

Source from the content-addressed store, hash-verified

45
46// Write writes bytes to the underlying hash.
47func (h *AdvisoryLockHash) Write(data []byte) {
48 var activeHash hash.Hash = h.hash32
49 if h.configuredPrefix == 0 {
50 activeHash = h.hash64
51 }
52
53 _, err := activeHash.Write(data)
54 if err != nil {
55 panic(err) // error basically impossible, so panic for caller convenience
56 }
57}

Callers 3

TestAdvisoryLockHashFunction · 0.95
exerciseExecutorTxFunction · 0.95
buildUniqueKeyStringFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestAdvisoryLockHashFunction · 0.76