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

Method GetLocked

shock-server/node/locker/locker.go:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130}
131
132func (l *NodeLocker) GetLocked() (nodes []*NodeLock) {
133 l.Lock()
134 defer l.Unlock()
135 for _, n := range l.nodes {
136 if n.IsLocked {
137 nodes = append(nodes, n)
138 }
139 }
140 return
141}
142
143func (l *NodeLocker) GetAll() (nodes []*NodeLock) {
144 l.Lock()

Callers 1

mapRoutesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected