diff --git a/src/lib/dwatch.ts b/src/lib/dwatch.ts index 8a15d0f..7d971f6 100644 --- a/src/lib/dwatch.ts +++ b/src/lib/dwatch.ts @@ -6,6 +6,8 @@ import {bmaWatcher} from "./watchers/bma/bma-watcher"; import {dprobeHeartbeat} from './watchers/dprobe/dprobe-heartbeat-watcher' import {webDiffWatcher} from "./watchers/webdiff/webdiff-watcher"; import {Watcher} from "./types/state"; +import {headWatcher} from "./watchers/bma/head-watcher"; +import {jsonWatcher} from "./watchers/wotwizard/json-watcher"; export async function dwatch(confFile: string) { @@ -16,8 +18,7 @@ export async function dwatch(confFile: string) { (await Promise.all((conf.bmaServers || []).map(bmaWatcher(conf)))).forEach(w => watchers.push(w)); (await Promise.all((conf.dprobeHeartbeats || []).map(dprobeHeartbeat(conf)))).forEach(w => watchers.push(w)); (await Promise.all((conf.webDiffServers || []).map(webDiffWatcher(conf)))).forEach(w => watchers.push(w)); + (await Promise.all((conf.headServers || []).map(headWatcher(conf)))).forEach(w => watchers.push(w)); + (await Promise.all((conf.wwMeta || []).map(jsonWatcher(conf)))).forEach(w => watchers.push(w)); return watchers } - -// (await Promise.all((conf.headServers || []).map(headWatcher(conf)))).forEach(w => watchers.push(w)); -// (await Promise.all((conf.wwMeta || []).map(jsonWatcher(conf)))).forEach(w => watchers.push(w)); \ No newline at end of file