Moved offllinePeers to KV to further reduce coupling
This commit is contained in:
parent
10c1cd7803
commit
dde10b7005
6 changed files with 12 additions and 6 deletions
|
@ -26,7 +26,7 @@ if TYPE_CHECKING:
|
|||
def clear_offline_peer(comm_inst: 'OnionrCommunicatorDaemon'):
|
||||
"""Remove the longest offline peer to retry later."""
|
||||
try:
|
||||
removed = comm_inst.offlinePeers.pop(0)
|
||||
removed = comm_inst..pop(0)
|
||||
except IndexError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue