From 163e6f01579404f75f5b993979a714af4c799923 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Fri, 30 Aug 2024 17:03:38 +1000 Subject: [PATCH] fix: prevent panic from subscriber not ack-ing before timeout --- backend/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/controller.go b/backend/controller/controller.go index 84ac0e87e..85cbb4417 100644 --- a/backend/controller/controller.go +++ b/backend/controller/controller.go @@ -1856,7 +1856,7 @@ func (s *Service) watchModuleChanges(ctx context.Context, sendChange func(respon return err } initialCount := len(seedDeployments) - deploymentChanges := make(chan dal.DeploymentNotification, len(seedDeployments)) + deploymentChanges := make(chan dal.DeploymentNotification, 32) for _, deployment := range seedDeployments { deploymentChanges <- dal.DeploymentNotification{Message: optional.Some(deployment)} }