summaryrefslogtreecommitdiff
path: root/internal/clients/healthclient.go
diff options
context:
space:
mode:
authorPaul Buetow <35781042+pbuetow@users.noreply.github.com>2020-09-19 19:52:11 +0100
committerGitHub <noreply@github.com>2020-09-19 19:52:11 +0100
commit3c889d2eed4e12af505ea84d46d8e52d21057a1f (patch)
tree8e6d9f697fe9a5c70f200d54745bb5daecac6bde /internal/clients/healthclient.go
parentec67d9833095dfbe620dd3c99ea0caba391c4b87 (diff)
parentdf2ff83897cde61d04b12958c6f6d458c69502f4 (diff)
Merge pull request #14 from snonux/develop
Refactor context handling
Diffstat (limited to 'internal/clients/healthclient.go')
-rw-r--r--internal/clients/healthclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/clients/healthclient.go b/internal/clients/healthclient.go
index 7313583..e93f6be 100644
--- a/internal/clients/healthclient.go
+++ b/internal/clients/healthclient.go
@@ -50,7 +50,7 @@ func (c *HealthClient) Start(ctx context.Context) (status int) {
conn.Handler = handlers.NewHealthHandler(c.server, receive)
conn.Commands = []string{c.mode.String()}
- connCtx, cancel := conn.Handler.WithCancel(ctx)
+ connCtx, cancel := context.WithCancel(ctx)
go conn.Start(connCtx, cancel, throttleCh, statsCh)
for {