Skip to content
Snippets Groups Projects
Commit 725ecd7b authored by Mahdi Yari's avatar Mahdi Yari
Browse files

set config

parent 020671a3
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,8 @@ class Hive extends EventEmitter {
setOptions(options) {
Object.assign(this.options, options);
if (options.hasOwnProperty('useAppbaseApi'))
config.set('useAppbaseApi', options.useAppbaseApi)
if (options.hasOwnProperty('failover_threshold'))
this.failover_threshold = options.failover_threshold;
if (options.hasOwnProperty('alternative_api_endpoints'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment