Minor fix on already defer db close
This commit is contained in:
parent
eac85a31ed
commit
3743f08c1f
1 changed files with 0 additions and 1 deletions
1
api.go
1
api.go
|
@ -194,7 +194,6 @@ func (h *Headscale) PollNetMapHandler(c *gin.Context) {
|
||||||
m.LastSeen = &now
|
m.LastSeen = &now
|
||||||
}
|
}
|
||||||
db.Save(&m)
|
db.Save(&m)
|
||||||
db.Close()
|
|
||||||
|
|
||||||
pollData := make(chan []byte, 1)
|
pollData := make(chan []byte, 1)
|
||||||
update := make(chan []byte, 1)
|
update := make(chan []byte, 1)
|
||||||
|
|
Loading…
Reference in a new issue