Browse Source

spin off zombie init as go routine

(cherry picked from commit 6d65c44c4375ff7a292c05d2becf6507e7310837)
abhishek9686 1 year ago
parent
commit
130ea6d611
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/zombie.go

+ 1 - 1
logic/zombie.go

@@ -76,7 +76,7 @@ func checkForZombieHosts(h *models.Host) {
 // ManageZombies - goroutine which adds/removes/deletes nodes from the zombie node quarantine list
 // ManageZombies - goroutine which adds/removes/deletes nodes from the zombie node quarantine list
 func ManageZombies(ctx context.Context, peerUpdate chan *models.Node) {
 func ManageZombies(ctx context.Context, peerUpdate chan *models.Node) {
 	logger.Log(2, "Zombie management started")
 	logger.Log(2, "Zombie management started")
-	InitializeZombies()
+	go InitializeZombies()
 
 
 	// Zombie Nodes Cleanup Four Times a Day
 	// Zombie Nodes Cleanup Four Times a Day
 	ticker := time.NewTicker(time.Hour * ZOMBIE_TIMEOUT)
 	ticker := time.NewTicker(time.Hour * ZOMBIE_TIMEOUT)