Audrius Butkevicius 11 lat temu
rodzic
commit
1aaf34b0ed
1 zmienionych plików z 1 dodań i 1 usunięć
  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,