More decoupling, removed unnecessary announceCache
This commit is contained in:
parent
fad5e8547e
commit
080f33bf1f
5 changed files with 10 additions and 12 deletions
|
@ -25,8 +25,9 @@ if TYPE_CHECKING:
|
|||
|
||||
def clear_offline_peer(comm_inst: 'OnionrCommunicatorDaemon'):
|
||||
"""Remove the longest offline peer to retry later."""
|
||||
kv: "DeadSimpleKV" = comm_inst.shared_state.get_by_string("DeadSimpleKV")
|
||||
try:
|
||||
removed = comm_inst..pop(0)
|
||||
removed = kv.get('offlinePeers').pop(0)
|
||||
except IndexError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue