MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / hash

Method hash

internal/utils/counters/counter.go:202–204  ·  view source on GitHub ↗

calculate hash of the key

(key string)

Source from the content-addressed store, hash-verified

200
201// calculate hash of the key
202func (this *Counter[T]) hash(key string) uint64 {
203 return xxhash.Sum64String(key)
204}

Callers 3

IncreaseKeyMethod · 0.95
GetKeyMethod · 0.95
ResetKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected