MCPcopy Create free account
hub / github.com/MG-RAST/Shock / UnlockNode

Method UnlockNode

shock-server/node/locker/locker.go:124–130  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

122}
123
124func (l *NodeLocker) UnlockNode(id string) {
125 l.Lock()
126 defer l.Unlock()
127 if _, ok := l.nodes[id]; ok {
128 l.nodes[id].unlock()
129 }
130}
131
132func (l *NodeLocker) GetLocked() (nodes []*NodeLock) {
133 l.Lock()

Callers 9

ReplaceMethod · 0.80
ReadMethod · 0.80
IndexTypedRequestFunction · 0.80
AclTypedRequestFunction · 0.80
AsyncIndexerFunction · 0.80
DeleteMethod · 0.80
DeleteIndexMethod · 0.80
UpdateMethod · 0.80
SetFileFromPartsFunction · 0.80

Calls 1

unlockMethod · 0.80

Tested by

no test coverage detected