(k [32]byte)
| 50 | } |
| 51 | |
| 52 | func (hs *handleSystem) dropHandleNoLock(k [32]byte) { |
| 53 | if hs.handles == nil { |
| 54 | return |
| 55 | } |
| 56 | if h, exists := hs.handles[k]; exists { |
| 57 | hs.active[h.target] -= 1 |
| 58 | if hs.active[h.target] == 0 { |
| 59 | delete(hs.active, h.target) |
| 60 | } |
| 61 | } |
| 62 | delete(hs.handles, k) |
| 63 | } |
| 64 | |
| 65 | func (hs *handleSystem) Resolve(h blobcache.Handle) (blobcache.OID, blobcache.ActionSet) { |
| 66 | k := handleKey(h) |
no outgoing calls
no test coverage detected