fix: smb drive lastConnTime data race (#3787 close #3782)

This commit is contained in:
fregie
2023-03-10 15:59:53 +08:00
committed by GitHub
parent 43de823058
commit d06c605421
2 changed files with 9 additions and 5 deletions

View File

@ -5,7 +5,6 @@ import (
"errors"
"path/filepath"
"strings"
"time"
"github.com/alist-org/alist/v3/drivers/base"
"github.com/alist-org/alist/v3/internal/driver"
@ -19,7 +18,7 @@ type SMB struct {
model.Storage
Addition
fs *smb2.Share
lastConnTime time.Time
lastConnTime int64
}
func (d *SMB) Config() driver.Config {