From 6d65c44c4375ff7a292c05d2becf6507e7310837 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Wed, 27 Mar 2024 18:54:17 +0700 Subject: [PATCH] spin off zombie init as go routine --- logic/zombie.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/zombie.go b/logic/zombie.go index 2e1692ed..14bb9523 100644 --- a/logic/zombie.go +++ b/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)