mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 13:44:17 +08:00
disabling zombie logic
This commit is contained in:
parent
7dbe3ec345
commit
48f8dd79e7
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue