2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +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:
Jarrod Johnson 2018-07-09 12:59:37 -04:00
parent 08cf698609
commit 2342fe717e

View File

@ -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)