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

Method Delete

internal/caches/partial_ranges_queue.go:98–104  ·  view source on GitHub ↗

Delete ranges filename

(filename string)

Source from the content-addressed store, hash-verified

96
97// Delete ranges filename
98func (this *PartialRangesQueue) Delete(filename string) {
99 var index = this.indexForKey(filename)
100
101 this.mu[index].Lock()
102 delete(this.m[index], filename)
103 this.mu[index].Unlock()
104}
105
106// Dump ranges to filename from memory
107func (this *PartialRangesQueue) Dump() {

Callers

nothing calls this directly

Calls 3

indexForKeyMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected