mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
remove stray code from abandoned heartbeat technique in unique_service()
This commit is contained in:
parent
b85566c405
commit
9c2e7a59e1
@ -245,8 +245,7 @@ class ServiceRegistry(object):
|
||||
row,
|
||||
row['last_heartbeat'] > r.now() - row['heartbeat_interval'] * 3,
|
||||
False),
|
||||
row.merge({'last_heartbeat': r.now()}),
|
||||
candidate),
|
||||
row, candidate),
|
||||
return_changes='always').run()
|
||||
new_val = result['changes'][0]['new_val']
|
||||
if all([new_val[k] == candidate[k] for k in candidate
|
||||
@ -263,7 +262,6 @@ class ServiceRegistry(object):
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
def healthy_service(self, role):
|
||||
'''
|
||||
Find least loaded healthy service in the registry.
|
||||
|
Loading…
x
Reference in New Issue
Block a user