1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

march: factor calling parameters into a structure

This commit is contained in:
Nick Craig-Wood
2018-11-25 17:26:58 +00:00
parent d99ffde7c0
commit e3c4ebd59a
3 changed files with 40 additions and 31 deletions

View File

@@ -685,7 +685,13 @@ func CheckFn(fdst, fsrc fs.Fs, check checkFn, oneway bool) error {
}
// set up a march over fdst and fsrc
m := march.New(context.Background(), fdst, fsrc, "", c)
m := &march.March{
Ctx: context.Background(),
Fdst: fdst,
Fsrc: fsrc,
Dir: "",
Callback: c,
}
fs.Infof(fdst, "Waiting for checks to finish")
m.Run()