mobiletto 1.1.35 → 1.1.37
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -495,7 +495,7 @@ async function mobiletto (driverPath, key, secret, opts, encryption = null) {
|
|
|
495
495
|
|
|
496
496
|
const META_LOAD_QUEUE_NAME = '_loadMetaQueue'
|
|
497
497
|
const META_LOAD_JOB_NAME = '_loadMetaJob'
|
|
498
|
-
const META_LOAD_CONCURRENCY =
|
|
498
|
+
const META_LOAD_CONCURRENCY = process.env.MOBILETTO_META_LOAD_CONCURRENCY || 10
|
|
499
499
|
let META_LOAD_QUEUE = null
|
|
500
500
|
const metaLoadQueue = () => {
|
|
501
501
|
if (META_LOAD_QUEUE === null) {
|
|
@@ -504,7 +504,7 @@ async function mobiletto (driverPath, key, secret, opts, encryption = null) {
|
|
|
504
504
|
logger.error(message)
|
|
505
505
|
throw new MobilettoError(message)
|
|
506
506
|
}
|
|
507
|
-
META_LOAD_QUEUE = new Queue(META_LOAD_QUEUE_NAME, `redis://${client.redisConfig.host ||
|
|
507
|
+
META_LOAD_QUEUE = new Queue(META_LOAD_QUEUE_NAME, `redis://${client.redisConfig.host || REDIS_HOST}:${client.redisConfig.port || REDIS_PORT}`)
|
|
508
508
|
META_LOAD_QUEUE.mobilettoHandlers = {}
|
|
509
509
|
META_LOAD_QUEUE.mobilettoErrorHandlers = {}
|
|
510
510
|
META_LOAD_QUEUE.process(META_LOAD_JOB_NAME, META_LOAD_CONCURRENCY, _singleMeta)
|