Audrius Butkevicius 11 年之前
父节点
当前提交
1aaf34b0ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/model/model.go

+ 1 - 1
internal/model/model.go

@@ -1053,7 +1053,7 @@ func (m *Model) ScanFolderSub(folder, sub string) error {
 		return err
 	}
 	batchSize := 100
-	batch := make([]protocol.FileInfo, 0, 00)
+	batch := make([]protocol.FileInfo, 0, batchSize)
 	for f := range fchan {
 		events.Default.Log(events.LocalIndexUpdated, map[string]interface{}{
 			"folder":   folder,