@nxtedition/lib 23.9.17 → 23.9.18
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 +10 -8
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -346,13 +346,15 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
346
346
|
let underPressure
|
|
347
347
|
if (appConfig.underPressure) {
|
|
348
348
|
underPressure = makeUnderPressure(appConfig.underPressure)
|
|
349
|
-
underPressure
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
349
|
+
if (underPressure) {
|
|
350
|
+
underPressure.pressure$.subscribe((pressure) => {
|
|
351
|
+
if (pressure) {
|
|
352
|
+
logger?.warn({ pressure }, 'pressure triggered')
|
|
353
|
+
} else {
|
|
354
|
+
logger?.debug('pressure cleared')
|
|
355
|
+
}
|
|
356
|
+
})
|
|
357
|
+
}
|
|
356
358
|
}
|
|
357
359
|
|
|
358
360
|
if (appConfig.couchdb || appConfig.couch) {
|
|
@@ -648,7 +650,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
648
650
|
],
|
|
649
651
|
),
|
|
650
652
|
) ?? rxjs.of([]),
|
|
651
|
-
underPressure?.pressure
|
|
653
|
+
underPressure?.pressure$?.pipe(
|
|
652
654
|
rx.map((pressure) =>
|
|
653
655
|
pressure == null
|
|
654
656
|
? []
|