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

Method ForceSync

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

Source from the content-addressed store, hash-verified

260}
261
262func (this *BlocksFile) ForceSync() error {
263 this.mu.Lock()
264 defer this.mu.Unlock()
265
266 err := this.checkStatus()
267 if err != nil {
268 return err
269 }
270
271 return this.sync(true)
272}
273
274func (this *BlocksFile) SyncAt() time.Time {
275 return this.syncAt

Callers 1

syncLoopMethod · 0.80

Calls 4

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

Tested by

no test coverage detected