[tor-commits] [sbws/master] Remove an assert on _need_refresh()
pastly at torproject.org
pastly at torproject.org
Tue Jun 26 15:36:50 UTC 2018
commit ba873130843856100db78ba204314d1be82cb2fd
Author: Matt Traudt <sirmatt at ksu.edu>
Date: Fri Jun 22 10:28:26 2018 -0400
Remove an assert on _need_refresh()
The chance of us needing a refresh at this point is TINY, but it's probably
better to return a list of relays stale by a millisecond than it is to cause
the user's program to crash.
---
sbws/lib/relaylist.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/sbws/lib/relaylist.py b/sbws/lib/relaylist.py
index 6afa18a..ddd982a 100644
--- a/sbws/lib/relaylist.py
+++ b/sbws/lib/relaylist.py
@@ -153,7 +153,6 @@ class RelayList:
log.debug('No we don\'t need to refresh our relays. '
'It was done by someone else.')
log.debug('Giving back the lock for refreshing relays.')
- assert not self._need_refresh()
return self._relays
@property
More information about the tor-commits
mailing list