Rewrite old lock error msg

This commit is contained in:
Kristoffer Dalby 2021-08-06 20:03:25 +01:00
parent 5bc5c5dc1b
commit 4243885246
No known key found for this signature in database
GPG Key ID: 09F62DC067465735

7
api.go
View File

@ -298,13 +298,8 @@ func (h *Headscale) PollNetMapHandler(c *gin.Context) {
Str("handler", "PollNetMap"). Str("handler", "PollNetMap").
Str("id", c.Param("id")). Str("id", c.Param("id")).
Str("machine", m.Name). Str("machine", m.Name).
Msg("Locking poll mutex") Msg("Storing update channel")
h.clientsPolling.Store(m.ID, update) h.clientsPolling.Store(m.ID, update)
log.Trace().
Str("handler", "PollNetMap").
Str("id", c.Param("id")).
Str("machine", m.Name).
Msg("Unlocking poll mutex")
data, err := h.getMapResponse(mKey, req, m) data, err := h.getMapResponse(mKey, req, m)
if err != nil { if err != nil {