From a41a7243d6b5a1db48c1867b458a8678e0f4f720 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Thu, 11 Apr 2024 18:52:38 -0400 Subject: [PATCH] fix: use cluster signal to exit service status runner (#230) TODO: refactor how service is started and shutdown Signed-off-by: Artur Troian --- cluster/service.go | 2 -- service.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cluster/service.go b/cluster/service.go index dbf74775..1fdd8ef8 100644 --- a/cluster/service.go +++ b/cluster/service.go @@ -332,8 +332,6 @@ func (s *service) run(ctx context.Context, deployments []ctypes.IDeployment) { } } - // var inv provider.Inventory - trySignal() loop: diff --git a/service.go b/service.go index 5a14397d..20bbae2d 100644 --- a/service.go +++ b/service.go @@ -321,7 +321,7 @@ func (s *service) statusRun() { loop: for { select { - case <-s.lc.ShutdownRequest(): + case <-s.cluster.Done(): return case evt := <-events: switch obj := evt.(type) {