MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / hashKey

Function hashKey

consistent/consistent.go:359–361  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

357}
358
359func hashKey(key string) proto.NodeKey {
360 return proto.NodeKey{Hash: hash.HashH([]byte(key))}
361}
362
363func (c *Consistent) updateSortedHashes() {
364 hashes := c.sortedHashes[:0]

Callers 6

AddCacheMethod · 0.85
RemoveCacheMethod · 0.85
GetNeighborMethod · 0.85
GetNodeMethod · 0.85
GetTwoNeighborsMethod · 0.85
GetNeighborsExMethod · 0.85

Calls 1

HashHFunction · 0.92

Tested by

no test coverage detected