func (ch *ConsistentHash) Assignment(item string) (bucket string) {
	ch.mu.RLock()
	defer ch.mu.RUnlock()

	bucket = ch.assignmentUnsafe(item)
	return
}
// Assignment returns the bucket assignment for a given item.
//
// Calling `Assignment` is safe to do concurrently and acquires
// a read lock on the consistent hash reference.
Assignment returns the bucket assignment for a given item.

Calling `Assignment` is safe to do concurrently and acquires
a read lock on the consistent hash reference.
// Assignment returns the bucket assignment for a given item . // // Calling ` Assignment ` is safe to do concurrently and acquires // a read lock on the consistent hash reference .
func (ch *ConsistentHash) Assignment(item string) (bucket string) {
	ch.mu.RLock()
	defer ch.mu.RUnlock()
	bucket = ch.assignmentUnsafe(item)
	return
}
func ( ch * ConsistentHash ) Assignment ( item string ) ( bucket string ) { ch . mu . RLock ( ) defer ch . mu . RUnlock ( ) bucket = ch . assignmentUnsafe ( item ) return }
Assignment returns the bucket assignment for a given item.
Assignment returns the bucket assignment for a given item .