Moved offllinePeers to KV to further reduce coupling

This commit is contained in:
Kevin 2020-07-26 19:12:52 -05:00
parent 10c1cd7803
commit dde10b7005
6 changed files with 12 additions and 6 deletions

View file

@ -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: