(id string)
| 185 | } |
| 186 | |
| 187 | func (f *FileLocker) Get(id string) *LockInfo { |
| 188 | f.Lock() |
| 189 | defer f.Unlock() |
| 190 | if info, ok := f.nodes[id]; ok { |
| 191 | return info |
| 192 | } |
| 193 | return nil |
| 194 | } |
| 195 | |
| 196 | func (f *FileLocker) Add(id string) *LockInfo { |
| 197 | f.Lock() |
no outgoing calls
no test coverage detected