@nxtedition/lib 19.8.19 → 19.8.21
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/app.js +0 -8
- package/couch.js +1 -2
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -244,14 +244,6 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
244
244
|
|
|
245
245
|
toobusy = () => currentLag > maxLag
|
|
246
246
|
toobusy.lag = () => currentLag
|
|
247
|
-
|
|
248
|
-
toobusy.onLag((currentLag) => {
|
|
249
|
-
if (currentLag > 1e3) {
|
|
250
|
-
logger.error({ currentLag }, 'lag')
|
|
251
|
-
} else {
|
|
252
|
-
logger.warn({ currentLag }, 'lag')
|
|
253
|
-
}
|
|
254
|
-
})
|
|
255
247
|
}
|
|
256
248
|
|
|
257
249
|
if (appConfig.couchdb || appConfig.couch) {
|
package/couch.js
CHANGED
|
@@ -488,11 +488,10 @@ export function makeCouch(opts) {
|
|
|
488
488
|
method,
|
|
489
489
|
body: typeof body === 'object' && body ? JSON.stringify(body) : body,
|
|
490
490
|
headers,
|
|
491
|
-
dispatcher: client,
|
|
492
491
|
}
|
|
493
492
|
|
|
494
493
|
return new Promise((resolve, reject) =>
|
|
495
|
-
dispatch(req, {
|
|
494
|
+
dispatch(client, req, {
|
|
496
495
|
resolve,
|
|
497
496
|
reject,
|
|
498
497
|
signal,
|