graceful shutdown lint fixes
This commit is contained in:
parent
889eff265f
commit
3f0639c87d
3 changed files with 29 additions and 20 deletions
4
poll.go
4
poll.go
|
@ -290,8 +290,8 @@ func (h *Headscale) PollNetMapStream(
|
|||
keepAliveChan chan []byte,
|
||||
updateChan chan struct{},
|
||||
) {
|
||||
h.wg.Add(1)
|
||||
defer h.wg.Done()
|
||||
h.pollNetMapStreamWG.Add(1)
|
||||
defer h.pollNetMapStreamWG.Done()
|
||||
|
||||
ctx := context.WithValue(req.Context(), machineNameContextKey, machine.Hostname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue