func (ch *ConsistentHash) IsAssigned(bucket, item string) (ok bool) {
	ch.mu.RLock()
	defer ch.mu.RUnlock()

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

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