From 768df11d210abf2ff7c22a6f6954db5a1f62602d Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Sat, 21 Jan 2023 00:01:11 -0500 Subject: [PATCH] agent/hcp/scada: no need to buffer chan --- agent/hcp/scada/watchdog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/hcp/scada/watchdog.go b/agent/hcp/scada/watchdog.go index e6d4373714..61fdeb74b9 100644 --- a/agent/hcp/scada/watchdog.go +++ b/agent/hcp/scada/watchdog.go @@ -31,7 +31,7 @@ func (p *watchdogProvider) Start() error { } p.running = true - p.shutdownCh = make(chan struct{}, 1) + p.shutdownCh = make(chan struct{}) go func() { for { select {