revert one change from prev checkin as it impacted testing

This commit is contained in:
Dave Horton
2020-04-20 16:52:27 -04:00
parent 203cd0d16b
commit 3bb719c035
+9
View File
@@ -49,6 +49,15 @@ module.exports = (srf, logger) => {
}
});
if (process.env.JAMBONES_FEATURE_SERVERS) {
dynamic = false;
process.env.JAMBONES_FEATURE_SERVERS
.split(',')
.map((hp) => hp.trim())
.forEach((uri) => contacts.set(uri, {active: 0, calls: 0}));
debug(`using static list of feature servers: ${[ ...contacts]}`);
}
if (dynamic) {
const CHECK_INTERVAL = 35;
setInterval(() => {