sync: move Transferring into operations.Copy

This makes the code more consistent with the operations code setting
the transfer statistics up.
This commit is contained in:
Nick Craig-Wood
2019-04-23 16:19:12 +01:00
parent 0655738da6
commit 2eb31a4f1d
3 changed files with 10 additions and 9 deletions

View File

@@ -995,9 +995,9 @@ func TestSyncWithTrackRenames(t *testing.T) {
fstest.CheckItems(t, r.Fremote, f1, f2)
if canTrackRenames {
assert.Equal(t, accounting.Stats.GetTransfers(), int64(0))
assert.Equal(t, int64(0), accounting.Stats.GetTransfers())
} else {
assert.Equal(t, accounting.Stats.GetTransfers(), int64(1))
assert.Equal(t, int64(1), accounting.Stats.GetTransfers())
}
}