Don't bother watching the control key, it's only for write updates

This commit is contained in:
Joshua Boniface 2018-09-29 01:57:38 -04:00
parent 2ff8e7a07b
commit 08c09135c8
1 changed files with 0 additions and 7 deletions

View File

@ -232,13 +232,6 @@ this_router = t_router[myhostname]
update_zookeeper = this_router.update_zookeeper
update_zookeeper()
@zk_conn.DataWatch('/routers')
def updateprimary(data, meta):
if data == myhostname:
this_router.set_primary()
else:
this_router.set_secondary()
@zk_conn.ChildrenWatch('/networks')
def updatenetworks(new_network_list):
global network_list