refactor: Update PROBE_MONITOR_FETCH_LIMIT default value to 10

This commit updates the default value of the PROBE_MONITOR_FETCH_LIMIT variable in the Config.ts file from 1 to 10. This change ensures that the monitor fetch limit is set to a more reasonable value, improving the efficiency of the monitoring process.
This commit is contained in:
Simon Larsen 2024-07-04 21:05:03 +01:00
parent ad1e5fefc6
commit 0e53e26695
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA

View File

@ -47,7 +47,7 @@ if (typeof probeMonitoringWorkers === "string") {
export const PROBE_MONITORING_WORKERS: number = probeMonitoringWorkers;
let monitorFetchLimit: string | number =
process.env["PROBE_MONITOR_FETCH_LIMIT"] || 1;
process.env["PROBE_MONITOR_FETCH_LIMIT"] || 10;
if (typeof monitorFetchLimit === "string") {
monitorFetchLimit = parseInt(monitorFetchLimit);