aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorDevon Hudson <devonhudson@librem.one>2023-05-03 18:21:33 -0600
committerDevon Hudson <devonhudson@librem.one>2023-05-03 18:21:33 -0600
commitd5c11a3c86bf1eeb7ae6b1c243ec889432fcd881 (patch)
tree0d5b08d80a542dd6f8e828e1820b4f106e971cab /setup
parent99b143d4d08c297c13a5fabf893e555bf6f63a88 (diff)
Fix flaky test in process context
Diffstat (limited to 'setup')
-rw-r--r--setup/process/process.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/process/process.go b/setup/process/process.go
index b2d2844a..9a3d6401 100644
--- a/setup/process/process.go
+++ b/setup/process/process.go
@@ -10,7 +10,7 @@ import (
type ProcessContext struct {
mu sync.RWMutex
- wg *sync.WaitGroup // used to wait for components to shutdown
+ wg sync.WaitGroup // used to wait for components to shutdown
ctx context.Context // cancelled when Stop is called
shutdown context.CancelFunc // shut down Dendrite
degraded map[string]struct{} // reasons why the process is degraded
@@ -21,7 +21,7 @@ func NewProcessContext() *ProcessContext {
return &ProcessContext{
ctx: ctx,
shutdown: shutdown,
- wg: &sync.WaitGroup{},
+ wg: sync.WaitGroup{},
}
}