fix `wg.Add(1)` lint
This commit is contained in:
parent
379a33de42
commit
c0f7b2ef39
|
@ -62,8 +62,8 @@ func (s *StepDump) Run(ctx context.Context, state multistep.StateBag) multistep.
|
||||||
defer wg.Wait()
|
defer wg.Wait()
|
||||||
ctxWithCancel, cancel := context.WithCancel(ctx)
|
ctxWithCancel, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
go func() {
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
cmd := &packersdk.RemoteCmd{
|
cmd := &packersdk.RemoteCmd{
|
||||||
Command: "while true ; do sleep 3; sudo kill -s SIGUSR1 $(pidof qemu-img); done",
|
Command: "while true ; do sleep 3; sudo kill -s SIGUSR1 $(pidof qemu-img); done",
|
||||||
|
|
Loading…
Reference in New Issue