summaryrefslogtreecommitdiff
path: root/plugins/jobs/drivers/sqs
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-14 21:14:26 +0300
committerValery Piashchynski <[email protected]>2021-07-14 21:14:26 +0300
commitb38a0fffab5bba5fa7a0e460f0e6b87547ee3eda (patch)
tree0e3ea6775d0b83210e298d256738ad15669a9e8a /plugins/jobs/drivers/sqs
parent7ea227733e0b1fa59021233e6cd0fd06442fbe50 (diff)
NPE when stopping RMQ channels.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/drivers/sqs')
-rw-r--r--plugins/jobs/drivers/sqs/consumer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/jobs/drivers/sqs/consumer.go b/plugins/jobs/drivers/sqs/consumer.go
index 7e2f229c..7e1f6d56 100644
--- a/plugins/jobs/drivers/sqs/consumer.go
+++ b/plugins/jobs/drivers/sqs/consumer.go
@@ -101,6 +101,7 @@ func NewSQSConsumer(configKey string, log logger.Logger, cfg cfgPlugin.Configure
sessionToken: globalCfg.SessionToken,
secret: globalCfg.Secret,
endpoint: globalCfg.Endpoint,
+ pauseCh: make(chan struct{}),
}
// PARSE CONFIGURATION -------
@@ -197,6 +198,7 @@ func FromPipeline(pipe *pipeline.Pipeline, log logger.Logger, cfg cfgPlugin.Conf
sessionToken: globalCfg.SessionToken,
secret: globalCfg.Secret,
endpoint: globalCfg.Endpoint,
+ pauseCh: make(chan struct{}),
}
// PARSE CONFIGURATION -------