MCPcopy Create free account
hub / github.com/astercloud/aster / LoadFiles

Method LoadFiles

pkg/backends/state.go:343–349  ·  view source on GitHub ↗

LoadFiles 加载文件数据 (用于状态恢复)

(files map[string]*FileData)

Source from the content-addressed store, hash-verified

341
342// LoadFiles 加载文件数据 (用于状态恢复)
343func (b *StateBackend) LoadFiles(files map[string]*FileData) {
344 b.mu.Lock()
345 defer b.mu.Unlock()
346
347 b.files = make(map[string]*FileData, len(files))
348 maps.Copy(b.files, files)
349}

Callers 1

Calls 1

CopyMethod · 0.80

Tested by 1