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

Method init

internal/utils/bfs/fs.go:74–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (this *FS) init() {
75 go func() {
76 // sync in background
77 for range this.syncTicker.C {
78 this.syncLoop()
79 }
80 }()
81
82 go func() {
83 for {
84 this.processClosingBFiles()
85 }
86 }()
87}
88
89// OpenFileWriter 打开文件写入器
90func (this *FS) OpenFileWriter(hash string, bodySize int64, isPartial bool) (*FileWriter, error) {

Callers

nothing calls this directly

Calls 2

syncLoopMethod · 0.95
processClosingBFilesMethod · 0.95

Tested by

no test coverage detected