Loading pkg/core/hashring.go +1 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ func NewBucketKey(secret string, distName string) BucketKey { } func (b *BucketKey) NewBucketHash(usrBytes []byte) Hashkey { b.bucketKey.Reset() b.bucketKey.Write(usrBytes) h := b.bucketKey.Sum(nil) return Hashkey(binary.BigEndian.Uint64(h[:8])) Loading Loading
pkg/core/hashring.go +1 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ func NewBucketKey(secret string, distName string) BucketKey { } func (b *BucketKey) NewBucketHash(usrBytes []byte) Hashkey { b.bucketKey.Reset() b.bucketKey.Write(usrBytes) h := b.bucketKey.Sum(nil) return Hashkey(binary.BigEndian.Uint64(h[:8])) Loading