mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Remove superfluous call to sync to file
load_from_json already makes the call, remove the extra call that is redundant.
This commit is contained in:
parent
08cf698609
commit
2342fe717e
@ -108,9 +108,8 @@ def connect_to_leader(cert=None, name=None, leader=None):
|
||||
cfm._cfgstore['collective'] = colldata
|
||||
for globvar in globaldata:
|
||||
cfm.set_global(globvar, globaldata[globvar])
|
||||
cfm.ConfigManager(tenant=None)._load_from_json(dbjson)
|
||||
cfm._txcount = dbi['txcount']
|
||||
cfm.ConfigManager._bg_sync_to_file()
|
||||
cfm.ConfigManager(tenant=None)._load_from_json(dbjson)
|
||||
currentleader = leader
|
||||
#spawn this as a thread...
|
||||
follower = eventlet.spawn(follow_leader, remote)
|
||||
|
Loading…
Reference in New Issue
Block a user