MCPcopy Create free account
hub / github.com/blobcache/blobcache / Inspect

Method Inspect

src/bccore/handles.go:88–94  ·  view source on GitHub ↗
(h blobcache.Handle)

Source from the content-addressed store, hash-verified

86}
87
88func (hs *handleSystem) Inspect(h blobcache.Handle) (handle, bool) {
89 k := handleKey(h)
90 hs.mu.RLock()
91 defer hs.mu.RUnlock()
92 handle, exists := hs.handles[k]
93 return handle, exists
94}
95
96func (hs *handleSystem) DropAllForOID(oid blobcache.OID) {
97 hs.mu.Lock()

Callers

nothing calls this directly

Calls 1

handleKeyFunction · 0.85

Tested by

no test coverage detected