Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Dec 11, 2021
1 parent 81158c2 commit 4253175
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions RNS/Resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,15 +404,6 @@ def __watchdog_job(self):

sleep_time = self.last_activity + (rtt*(self.part_timeout_factor+window_remaining)) + Resource.RETRY_GRACE_TIME - time.time()

# TODO: Remove debug info
# RNS.log("rtt "+str(rtt))
# RNS.log("ptof "+str(self.part_timeout_factor))
# RNS.log("wait "+str((rtt*self.part_timeout_factor) + Resource.RETRY_GRACE_TIME))
# RNS.log("sleep "+str(sleep_time))
# RNS.log("wndw "+str(self.window))
# RNS.log("wndwr "+str(window_remaining))
# RNS.log("")

if sleep_time < 0:
if self.retries_left > 0:
RNS.log("Timed out waiting for parts, requesting retry", RNS.LOG_DEBUG)
Expand Down Expand Up @@ -606,11 +597,6 @@ def receive_part(self, packet):
except Exception as e:
RNS.log("Error while executing progress callback from "+str(self)+". The contained exception was: "+str(e), RNS.LOG_ERROR)

# TODO: Remove debug info
# RNS.log("outstanding_parts "+str(self.outstanding_parts))
# RNS.log("total_parts "+str(self.total_parts))
# RNS.log("received_count "+str(self.received_count))

i += 1

self.receiving_part = False
Expand Down

0 comments on commit 4253175

Please sign in to comment.