diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-09-19 19:53:03 +0100 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-09-19 19:53:03 +0100 |
| commit | f7849d259668b408829f2b2e8d29b9753eff390a (patch) | |
| tree | 2e1dcee66abeef22a12c27e7a633baa27f2773fe /internal/clients/healthclient.go | |
| parent | cdbcef72a1b9f93d08455b5a77f7f7afa2b9f53d (diff) | |
| parent | 3c889d2eed4e12af505ea84d46d8e52d21057a1f (diff) | |
Merge branch 'develop' of https://github.com/mimecast/dtail into develop
Diffstat (limited to 'internal/clients/healthclient.go')
| -rw-r--r-- | internal/clients/healthclient.go | 2 |
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 { |
