add adds a node to the consistent ring.
(node string)
| 128 | |
| 129 | // add adds a node to the consistent ring. |
| 130 | func (c *consistentRing) add(node string) { |
| 131 | c.lock.Lock() |
| 132 | defer c.lock.Unlock() |
| 133 | |
| 134 | c.ring.Add(node) |
| 135 | } |
| 136 | |
| 137 | // remove removes a node from the consistent ring. |
| 138 | func (c *consistentRing) remove(node string) { |