fix `wg.Add(1)` lint

This commit is contained in:
Roman Mingazeev 2021-01-15 12:59:27 +03:00
parent 379a33de42
commit c0f7b2ef39
1 changed files with 1 additions and 1 deletions

View File

@ -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",