summaryrefslogtreecommitdiff
path: root/internal/clients/handlers/maprhandler.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@dionysus>2020-09-19 17:52:45 +0100
committerPaul Buetow <paul@dionysus>2020-09-19 17:52:45 +0100
commit813d2d00ec581c801d64091c7774988b559c3e93 (patch)
treed491355684c3244860cb7d2c9ae2450f709db3e0 /internal/clients/handlers/maprhandler.go
parentec67d9833095dfbe620dd3c99ea0caba391c4b87 (diff)
refactor to have no context.Context in client handler structs
Diffstat (limited to 'internal/clients/handlers/maprhandler.go')
-rw-r--r--internal/clients/handlers/maprhandler.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/clients/handlers/maprhandler.go b/internal/clients/handlers/maprhandler.go
index b908f3b..5d98690 100644
--- a/internal/clients/handlers/maprhandler.go
+++ b/internal/clients/handlers/maprhandler.go
@@ -24,9 +24,7 @@ func NewMaprHandler(server string, query *mapr.Query, globalGroup *mapr.GlobalGr
shellStarted: false,
commands: make(chan string),
status: -1,
- withCancel: withCancel{
- done: make(chan struct{}),
- },
+ done: NewDone(),
},
query: query,
aggregate: client.NewAggregate(server, query, globalGroup),