mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 10:11:08 +08:00
disabling zombie logic
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user