1
0
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:
Christian Schwarz 2017-09-16 20:21:05 +02:00
parent 36b66f6fd7
commit dc3378e890

View File

@ -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)
}