MCPcopy Create free account
hub / github.com/dadgar/onecache / add

Method add

onecache/ring.go:130–135  ·  view source on GitHub ↗

add adds a node to the consistent ring.

(node string)

Source from the content-addressed store, hash-verified

128
129// add adds a node to the consistent ring.
130func (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.
138func (c *consistentRing) remove(node string) {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected