MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / DeleteId

Method DeleteId

internal/utils/expires/id_key_map.go:42–48  ·  view source on GitHub ↗
(id int64)

Source from the content-addressed store, hash-verified

40}
41
42func (this *IdKeyMap) DeleteId(id int64) {
43 key, ok := this.idKeys[id]
44 if ok {
45 delete(this.keyIds, key)
46 }
47 delete(this.idKeys, id)
48}
49
50func (this *IdKeyMap) DeleteKey(key string) {
51 id, ok := this.keyIds[key]

Callers 1

TestNewIdKeyMapFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNewIdKeyMapFunction · 0.64