only check for zombies on same network

This commit is contained in:
Matthew R. Kasun
2022-06-13 15:19:25 -04:00
committed by Matthew R Kasun
parent 63a8abf5cc
commit cce7e30aeb
3 changed files with 100 additions and 1 deletions

View File

@@ -213,7 +213,7 @@ func DeleteNodeByID(node *models.Node, exterminate bool) error {
// ignoring for now, could hit a nil pointer if delete called twice
logger.Log(2, "attempted to remove node ACL for node", node.Name, node.ID)
}
removeZombie <- node.ID
return removeLocalServer(node)
}
@@ -313,6 +313,7 @@ func CreateNode(node *models.Node) error {
if err != nil {
return err
}
CheckZombies(node)
nodebytes, err := json.Marshal(&node)
if err != nil {