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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user