mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 09:32:32 +08:00
spin off zombie init as go routine
This commit is contained in:
parent
c82918ad35
commit
6d65c44c43
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ func checkForZombieHosts(h *models.Host) {
|
|||
// ManageZombies - goroutine which adds/removes/deletes nodes from the zombie node quarantine list
|
||||
func ManageZombies(ctx context.Context, peerUpdate chan *models.Node) {
|
||||
logger.Log(2, "Zombie management started")
|
||||
InitializeZombies()
|
||||
go InitializeZombies()
|
||||
|
||||
// Zombie Nodes Cleanup Four Times a Day
|
||||
ticker := time.NewTicker(time.Hour * ZOMBIE_TIMEOUT)
|
||||
|
|
Loading…
Reference in a new issue