style(egress): adopt go fix's WaitGroup.Go
This commit is contained in:
1 parent
9b16c0fd64
commit
71435c2bb6
1 file changed
+2
-4
@@ -30,11 +30,9 @@ func Serve(ctx context.Context, ln net.Listener, target string) error {
|
||||
}
|
||||
return err
|
||||
}
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
wg.Go(func() {
|
||||
join(ctx, client, target)
|
||||
}()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user