[mod] enable head/ww watchers
This commit is contained in:
@@ -6,6 +6,8 @@ import {bmaWatcher} from "./watchers/bma/bma-watcher";
|
|||||||
import {dprobeHeartbeat} from './watchers/dprobe/dprobe-heartbeat-watcher'
|
import {dprobeHeartbeat} from './watchers/dprobe/dprobe-heartbeat-watcher'
|
||||||
import {webDiffWatcher} from "./watchers/webdiff/webdiff-watcher";
|
import {webDiffWatcher} from "./watchers/webdiff/webdiff-watcher";
|
||||||
import {Watcher} from "./types/state";
|
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) {
|
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.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.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.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
|
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));
|
|
||||||
Reference in New Issue
Block a user