MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / BaseDelete

Method BaseDelete

BaseServer/concurrentHashMap.go:370–378  ·  view source on GitHub ↗
(k string)

Source from the content-addressed store, hash-verified

368}
369
370func (myMap *BaseMap) BaseDelete(k string) {
371 myMap.Lock()
372 defer myMap.Unlock()
373 if _, ok := myMap.m[k]; !ok {
374 return
375 } else {
376 delete(myMap.m, k)
377 }
378}

Callers 1

BenchmarkDelete_BaseMapFunction · 0.95

Calls

no outgoing calls

Tested by 1

BenchmarkDelete_BaseMapFunction · 0.76