mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 08:27:35 +00:00
introduce rw lock for db, ish...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:

committed by
Kristoffer Dalby

parent
a1a3ff4ba8
commit
eff529f2c5
@@ -107,6 +107,7 @@ func (h *Headscale) handlePoll(
|
||||
machine.LastSeen = &now
|
||||
}
|
||||
|
||||
// TODO(kradalby): Save specific stuff, not whole object.
|
||||
if err := h.db.MachineSave(machine); err != nil {
|
||||
logErr(err, "Failed to persist/update machine in the database")
|
||||
http.Error(writer, "", http.StatusInternalServerError)
|
||||
|
Reference in New Issue
Block a user