disabling zombie logic

This commit is contained in:
afeiszli 2022-08-24 11:04:52 -04:00
parent 7dbe3ec345
commit 48f8dd79e7
2 changed files with 4 additions and 4 deletions

View file

@ -185,7 +185,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
// removeZombie <- node.ID
if node.IsServer == "yes" {
return removeLocalServer(node)
}
@ -288,7 +288,7 @@ func CreateNode(node *models.Node) error {
if err != nil {
return err
}
CheckZombies(node)
// CheckZombies(node)
nodebytes, err := json.Marshal(&node)
if err != nil {

View file

@ -17,8 +17,8 @@ const (
var (
zombies []string
removeZombie chan string = make(chan (string))
newZombie chan string = make(chan (string))
removeZombie chan string = make(chan (string), 10)
newZombie chan string = make(chan (string), 10)
)
// CheckZombies - checks if new node has same macaddress as existing node