Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Oct 8, 2021
1 parent ca18d06 commit d2bc7fc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions LXMF/LXMF.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,6 @@ def sync(self, initiator=True):
self.link = RNS.Link(self.destination, established_callback = self.link_established, closed_callback = self.link_closed)
self.state = LXMPeer.LINK_ESTABLISHING

# TODO: Remove
RNS.log("Establishment timeout is "+str(self.link.establishment_timeout))
else:
if self.state == LXMPeer.LINK_READY:
RNS.log("Sync link to peer "+RNS.prettyhexrep(self.destination_hash)+" established, preparing request...", RNS.LOG_DEBUG)
Expand Down Expand Up @@ -773,9 +771,6 @@ def link_established(self, link):
self.sync()

def link_closed(self, link):
# TODO: Remove
RNS.log("The sync link to peer "+RNS.prettyhexrep(self.destination_hash)+" was closed: "+str(link.teardown_reason), RNS.LOG_DEBUG)

self.link = None
self.state = LXMPeer.IDLE

Expand All @@ -784,10 +779,6 @@ def handle_message(self, transient_id):
# TODO: Remove at some point
RNS.log("The message "+RNS.prettyhexrep(transient_id)+" was added to distribution queue for "+RNS.prettyhexrep(self.destination_hash), RNS.LOG_EXTREME)
self.unhandled_messages[transient_id] = self.router.propagation_entries[transient_id]
else:
# TODO: Remove at some point
RNS.log("The message "+RNS.prettyhexrep(transient_id)+" was NOT added to distribution queue for "+RNS.prettyhexrep(self.destination_hash), RNS.LOG_EXTREME)


class LXMRouter:
MAX_DELIVERY_ATTEMPTS = 3
Expand Down

0 comments on commit d2bc7fc

Please sign in to comment.