MCPcopy Create free account
hub / github.com/aceld/zinx / NewWithCustomHash

Function NewWithCustomHash

zutils/shard_lock_map.go:65–67  ·  view source on GitHub ↗

NewWithCustomHash creates a new ShardLockMaps with custom hash function. Use this when you need a different hash distribution strategy.

(hash IHash)

Source from the content-addressed store, hash-verified

63// NewWithCustomHash creates a new ShardLockMaps with custom hash function.
64// Use this when you need a different hash distribution strategy.
65func NewWithCustomHash(hash IHash) ShardLockMaps {
66 return createShardLockMaps(hash, DefaultShardCount)
67}
68
69// NewWithCustomHashAndCount creates a new ShardLockMaps with custom hash function and shard count.
70// This provides maximum flexibility for performance tuning.

Callers

nothing calls this directly

Calls 1

createShardLockMapsFunction · 0.85

Tested by

no test coverage detected