Audrius Butkevicius 11 vuotta sitten
vanhempi
sitoutus
1aaf34b0ed
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,