Pārlūkot izejas kodu

spin off zombie init as go routine

(cherry picked from commit 6d65c44c4375ff7a292c05d2becf6507e7310837)
abhishek9686 1 gadu atpakaļ
vecāks
revīzija
130ea6d611
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 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)