(id string)
| 116 | } |
| 117 | |
| 118 | func (l *NodeLocker) LockNode(id string) (err error) { |
| 119 | l.Add(id) |
| 120 | err = l.nodes[id].lock() // here is where we wait |
| 121 | return |
| 122 | } |
| 123 | |
| 124 | func (l *NodeLocker) UnlockNode(id string) { |
| 125 | l.Lock() |
no test coverage detected