MCPcopy
hub / github.com/NVIDIA/aistore / removeByUUID

Method removeByUUID

etl/registry.go:67–76  ·  view source on GitHub ↗
(uuid string)

Source from the content-addressed store, hash-verified

65}
66
67func (r *registry) removeByUUID(uuid string) (c Communicator) {
68 var ok bool
69 debug.Assert(uuid != "")
70 r.mtx.Lock()
71 if c, ok = r.byUUID[uuid]; ok {
72 delete(r.byUUID, uuid)
73 }
74 r.mtx.Unlock()
75 return c
76}
77
78func (r *registry) list() []Info {
79 r.mtx.RLock()

Callers 1

StopFunction · 0.80

Calls 3

AssertFunction · 0.92
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected