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

Method Sync

internal/utils/bfs/blocks_file.go:250–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248}
249
250func (this *BlocksFile) Sync() error {
251 this.mu.Lock()
252 defer this.mu.Unlock()
253
254 err := this.checkStatus()
255 if err != nil {
256 return err
257 }
258
259 return this.sync(false)
260}
261
262func (this *BlocksFile) ForceSync() error {
263 this.mu.Lock()

Callers 3

CloseMethod · 0.45
syncMethod · 0.45
SyncUnsafeMethod · 0.45

Calls 4

checkStatusMethod · 0.95
syncMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected