mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-25 04:50:05 +00:00
PollNetMapStream: do not create any rows during long-poll operation
This commit is contained in:
@@ -319,6 +319,14 @@ func (h *Headscale) DeleteMachine(machine *Machine) error {
|
||||
return h.RequestMapUpdates(namespaceID)
|
||||
}
|
||||
|
||||
func (h *Headscale) TouchMachine(machine *Machine) error {
|
||||
return h.db.Updates(Machine{
|
||||
ID: machine.ID,
|
||||
LastSeen: machine.LastSeen,
|
||||
LastSuccessfulUpdate: machine.LastSuccessfulUpdate,
|
||||
}).Error
|
||||
}
|
||||
|
||||
// HardDeleteMachine hard deletes a Machine from the database.
|
||||
func (h *Headscale) HardDeleteMachine(machine *Machine) error {
|
||||
err := h.RemoveSharedMachineFromAllNamespaces(machine)
|
||||
|
||||
Reference in New Issue
Block a user