v1.5.1 增强程序稳定性

This commit is contained in:
robin
2026-03-22 17:37:40 +08:00
parent afbaaa869c
commit 17e182b413
652 changed files with 22949 additions and 34397 deletions

View File

@@ -73,6 +73,12 @@ func OpenFS(dir string, options *FSOptions) (*FS, error) {
func (this *FS) init() {
go func() {
defer func() {
if r := recover(); r != nil {
log.Println("[BFS]sync goroutine panic:", r)
}
}()
// sync in background
for range this.syncTicker.C {
this.syncLoop()
@@ -80,6 +86,12 @@ func (this *FS) init() {
}()
go func() {
defer func() {
if r := recover(); r != nil {
log.Println("[BFS]closing goroutine panic:", r)
}
}()
for {
this.processClosingBFiles()
}

File diff suppressed because one or more lines are too long

View File