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

Method checkStatus

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

Source from the content-addressed store, hash-verified

352}
353
354func (this *BlocksFile) checkStatus() error {
355 if this.isClosed || this.isClosing {
356 return fmt.Errorf("check status failed: %w", ErrClosed)
357 }
358 return nil
359}
360
361func (this *BlocksFile) currentPos() (int64, error) {
362 return this.fp.Seek(0, io.SeekCurrent)

Callers 5

WriteMethod · 0.95
OpenFileWriterMethod · 0.95
OpenFileReaderMethod · 0.95
SyncMethod · 0.95
ForceSyncMethod · 0.95

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected