mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
lib/model: Polish (#5189)
This commit is contained in:
parent
49d5eae66a
commit
a57fa9cfab
@ -2044,7 +2044,7 @@ func (m *Model) internalScanFolderSubdirs(ctx context.Context, folder string, su
|
|||||||
|
|
||||||
batch := newFileInfoBatch(func(fs []protocol.FileInfo) error {
|
batch := newFileInfoBatch(func(fs []protocol.FileInfo) error {
|
||||||
if err := runner.CheckHealth(); err != nil {
|
if err := runner.CheckHealth(); err != nil {
|
||||||
l.Debugln("Stopping scan of folder %s due to: %s", folderCfg.Description(), err)
|
l.Debugf("Stopping scan of folder %s due to: %s", folderCfg.Description(), err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
m.updateLocalsFromScanning(folder, fs)
|
m.updateLocalsFromScanning(folder, fs)
|
||||||
@ -2081,7 +2081,6 @@ func (m *Model) internalScanFolderSubdirs(ctx context.Context, folder string, su
|
|||||||
|
|
||||||
// Do a scan of the database for each prefix, to check for deleted and
|
// Do a scan of the database for each prefix, to check for deleted and
|
||||||
// ignored files.
|
// ignored files.
|
||||||
batch.reset()
|
|
||||||
var toIgnore []db.FileInfoTruncated
|
var toIgnore []db.FileInfoTruncated
|
||||||
ignoredParent := ""
|
ignoredParent := ""
|
||||||
pathSep := string(fs.PathSeparator)
|
pathSep := string(fs.PathSeparator)
|
||||||
|
Loading…
Reference in New Issue
Block a user