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

Method runMemoryStorageSafety

internal/caches/storage_file.go:1577–1582  ·  view source on GitHub ↗
(f func(memoryStorage *MemoryStorage))

Source from the content-addressed store, hash-verified

1575}
1576
1577func (this *FileStorage) runMemoryStorageSafety(f func(memoryStorage *MemoryStorage)) {
1578 var memoryStorage = this.memoryStorage // copy
1579 if memoryStorage != nil {
1580 f(memoryStorage)
1581 }
1582}
1583
1584// 检查磁盘剩余空间
1585func (this *FileStorage) checkDiskSpace() {

Callers 4

DeleteMethod · 0.95
CleanAllMethod · 0.95
PurgeMethod · 0.95
StopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected