Minor fix on already defer db close

This commit is contained in:
Juan Font Alonso 2021-04-22 23:55:07 +02:00
parent eac85a31ed
commit 3743f08c1f

1
api.go
View File

@ -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)