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

Method Add

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

Source from the content-addressed store, hash-verified

150}
151
152func (l *NodeLocker) Add(id string) {
153 // add if missing, may happen if shock restarted
154 l.Lock()
155 defer l.Unlock()
156 if _, ok := l.nodes[id]; !ok {
157 l.nodes[id] = NewNodeLock(id)
158 }
159}
160
161func (l *NodeLocker) Remove(id string) {
162 l.Lock()

Callers 15

LockNodeMethod · 0.95
buildDownloadUrlFunction · 0.45
pcreateFunction · 0.45
DoFunction · 0.45
IndexTypedRequestFunction · 0.45
addMethod · 0.45
authTokenFunction · 0.45
fetchProfileFunction · 0.45
clientIdFunction · 0.45
SetExpirationMethod · 0.45
UpdateMethod · 0.45
closePartsMethod · 0.45

Calls 1

NewNodeLockFunction · 0.85

Tested by

no test coverage detected