Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
  • Loading branch information
jovany-wang committed Jul 7, 2023
1 parent 0b3980c commit 2ac04af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fed/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def __init__(self) -> None:
self._sending_obj_refs_q = deque()
self._check_send_thread = None
self._monitor_thread = None
self._lock_on_sending_q = threading.Lock()
self._lock_on_send_thread = threading.Lock()

def start(self, exit_when_failure_sending=False):
self._exit_when_failure_sending = exit_when_failure_sending
Expand Down Expand Up @@ -91,7 +89,7 @@ def _signal_exit():
try:
obj_ref = self._sending_obj_refs_q.popleft()
except IndexError:
time.sleep(0.5)
time.sleep(0.1)
continue
if isinstance(obj_ref, bool):
break
Expand Down

0 comments on commit 2ac04af

Please sign in to comment.