mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-11 08:49:28 +01:00
cmd: daemon: use closure-local variable when starting job
This commit is contained in:
parent
36b66f6fd7
commit
dc3378e890
@ -66,7 +66,7 @@ func (d *Daemon) Loop() {
|
||||
ctx = context.WithValue(ctx, contextKeyLog, logger)
|
||||
|
||||
go func(j Job) {
|
||||
job.JobStart(ctx)
|
||||
j.JobStart(ctx)
|
||||
finishs <- j
|
||||
}(job)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user