elasticio-sailor-nodejs 2.7.0-beta.0 → 2.7.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/amqp.js +2 -3
  2. package/package.json +1 -1
package/lib/amqp.js CHANGED
@@ -330,9 +330,8 @@ class Amqp {
330
330
  if (iteration) {
331
331
  options.headers.retry = iteration;
332
332
  }
333
- if (this.settings.AMQP_PERSISTENT_MESSAGES) {
334
- options.persistent = true;
335
- }
333
+ // AMQP_PERSISTENT_MESSAGES is false by default if not specified by env var
334
+ options.persistent = this.settings.AMQP_PERSISTENT_MESSAGES;
336
335
 
337
336
  log.debug('Current memory usage: %s Mb', process.memoryUsage().heapUsed / 1048576);
338
337
  log.trace('Pushing to exchange=%s, routingKey=%s, messageSize=%d, options=%j, iteration=%d',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elasticio-sailor-nodejs",
3
3
  "description": "The official elastic.io library for bootstrapping and executing for Node.js connectors",
4
- "version": "2.7.0-beta.0",
4
+ "version": "2.7.0-beta.1",
5
5
  "main": "run.js",
6
6
  "scripts": {
7
7
  "audit": "better-npm-audit audit --level high --production",