Skip to content

Commit 13235ad

Browse files
committed
Fixed typo
1 parent e8770bb commit 13235ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/actions/publish.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
'use strict';
2-
const eioUtils = require('elasticio-node').messages;
32
const co = require('co');
43
const amqp = require('amqplib');
54
const encryptor = require('../encryptor.js');
65

7-
var connection, channel;
6+
var conn, channel;
87

98
module.exports.process = processAction;
109

@@ -20,9 +19,9 @@ function processAction(msg, cfg, snapshot) {
2019
const amqpURI = process.env.ELASTICIO_AMQP_URI;
2120
const amqpExchange = `pubsub_${process.env.ELASTICIO_TASK_ID}_${process.env.ELASTICIO_USER_ID}`;
2221
co(function*() {
23-
if (!connection) {
22+
if (!conn) {
2423
console.log('Connecting to amqpURI=%s', amqpURI);
25-
connection = yield amqp.connect(amqpURI);
24+
conn = yield amqp.connect(amqpURI);
2625
}
2726
if (!channel) {
2827
console.log('Creating a confirm channel');

0 commit comments

Comments
 (0)