remove stray code from abandoned heartbeat technique in unique_service()

This commit is contained in:
Noah Levitt 2017-05-01 12:04:26 -07:00
parent b85566c405
commit 9c2e7a59e1

View File

@ -245,8 +245,7 @@ class ServiceRegistry(object):
row, row,
row['last_heartbeat'] > r.now() - row['heartbeat_interval'] * 3, row['last_heartbeat'] > r.now() - row['heartbeat_interval'] * 3,
False), False),
row.merge({'last_heartbeat': r.now()}), row, candidate),
candidate),
return_changes='always').run() return_changes='always').run()
new_val = result['changes'][0]['new_val'] new_val = result['changes'][0]['new_val']
if all([new_val[k] == candidate[k] for k in candidate if all([new_val[k] == candidate[k] for k in candidate
@ -263,7 +262,6 @@ class ServiceRegistry(object):
else: else:
return None return None
def healthy_service(self, role): def healthy_service(self, role):
''' '''
Find least loaded healthy service in the registry. Find least loaded healthy service in the registry.