lib/model: Don't acquire I/O token for send-only pull (#6951)

This commit is contained in:
Simon Frei
2020-09-03 13:59:45 +02:00
committed by GitHub
parent e3e46ec1de
commit 6365e6108f
2 changed files with 9 additions and 12 deletions
-7
View File
@@ -40,13 +40,6 @@ func (f *sendOnlyFolder) PullErrors() []FileError {
// pull checks need for files that only differ by metadata (no changes on disk)
func (f *sendOnlyFolder) pull() bool {
select {
case <-f.initialScanFinished:
default:
// Once the initial scan finished, a pull will be scheduled
return false
}
batch := make([]protocol.FileInfo, 0, maxBatchSizeFiles)
batchSizeBytes := 0