[enh] add url watcher + add optional maxLate parameter for BMA watcher

This commit is contained in:
2019-06-20 13:17:17 +02:00
parent 2f873d9b67
commit 129fa99593
6 changed files with 101 additions and 41 deletions

View File

@@ -3,6 +3,7 @@ import * as yaml from 'js-yaml';
import * as fs from 'fs';
import {ws2pWatcher} from "./watchers/ws2p/ws2p-watcher";
import {bmaWatcher} from "./watchers/bma/bma-watcher";
import {dprobeHeartbeat} from './watchers/dprobe/dprobe-heartbeat-watcher'
export async function dwatch(confFile: string) {
@@ -11,4 +12,5 @@ export async function dwatch(confFile: string) {
await Promise.all((conf.ws2pServers || []).map(ws2pWatcher(conf)))
await Promise.all((conf.bmaServers || []).map(bmaWatcher(conf)))
await Promise.all((conf.dprobeHeartbeats || []).map(dprobeHeartbeat(conf)))
}