()
| 72 | } |
| 73 | |
| 74 | func (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 打开文件写入器 |
| 90 | func (this *FS) OpenFileWriter(hash string, bodySize int64, isPartial bool) (*FileWriter, error) { |
nothing calls this directly
no test coverage detected