MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / AddNode

Method AddNode

base/heartbeat_test.go:54–58  ·  view source on GitHub ↗
(nodeUUID string)

Source from the content-addressed store, hash-verified

52
53}
54func (ns *TestHeartbeatNodeStore) AddNode(nodeUUID string) {
55 ns.lock.Lock()
56 ns.nodes[nodeUUID] = struct{}{}
57 ns.lock.Unlock()
58}
59
60func (ns *TestHeartbeatNodeStore) RemoveNode(nodeUUID string) {
61 ns.lock.Lock()

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected