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,
|
||||||
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user