From 9a2e630f86e6b7cdb48ad6145eebb49179f8634f Mon Sep 17 00:00:00 2001 From: tarat44 <32471142+tarat44@users.noreply.github.com> Date: Sun, 11 Apr 2021 15:12:33 -0400 Subject: [PATCH] fix formatting --- agent/checks/check.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/checks/check.go b/agent/checks/check.go index 47752d931..e2417709a 100644 --- a/agent/checks/check.go +++ b/agent/checks/check.go @@ -519,7 +519,7 @@ type CheckH2PING struct { stop bool stopCh chan struct{} stopLock sync.Mutex - stopWg sync.WaitGroup + stopWg sync.WaitGroup } func (c *CheckH2PING) check() { @@ -560,11 +560,11 @@ func (c *CheckH2PING) Stop() { c.stop = true close(c.stopCh) } - c.stopWg.Wait() + c.stopWg.Wait() } func (c *CheckH2PING) run() { - defer c.stopWg.Done() + defer c.stopWg.Done() // Get the randomized initial pause time initialPauseTime := lib.RandomStagger(c.Interval) next := time.After(initialPauseTime) @@ -587,7 +587,7 @@ func (c *CheckH2PING) Start() { } c.stop = false c.stopCh = make(chan struct{}) - c.stopWg.Add(1) + c.stopWg.Add(1) go c.run() }