소스 검색

spin off zombie init as go routine

abhishek9686 1 년 전
부모
커밋
cd2a963850
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      logic/zombie.go

+ 1 - 2
logic/zombie.go

@@ -76,11 +76,10 @@ 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)
-
 	for {
 		select {
 		case <-ctx.Done():