consistentRing is a wrapper around a consistent hash ring that provides helper methods for determining successors and replication peers.
| 36 | // consistentRing is a wrapper around a consistent hash ring that provides |
| 37 | // helper methods for determining successors and replication peers. |
| 38 | type consistentRing struct { |
| 39 | self string |
| 40 | ring *consistent.Consistent |
| 41 | replicas int |
| 42 | lock sync.Mutex |
| 43 | } |
| 44 | |
| 45 | // newConsistentRing returns a constinent ring and takes the name of this node |
| 46 | // and the number of its replicas. |
nothing calls this directly
no outgoing calls
no test coverage detected