Set default etcd_ws_keepalive_interval to 5

This commit is contained in:
Vitaliy Filippov
2024-06-08 00:38:48 +03:00
parent 1228403e74
commit 6501abc060
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ class EtcdAdapter
console.log('etcd websocket timed out, restarting it');
this.restart_watcher(cur_addr);
}
}, (Number(this.mon.config.etcd_ws_keepalive_interval) || 30)*1000);
}, (Number(this.mon.config.etcd_ws_keepalive_interval) || 5)*1000);
this.ws.on('error', () => this.restart_watcher(cur_addr));
this.ws.send(JSON.stringify({
create_request: {