Skip to content

Commit

Permalink
fix: debug logger doesnt always close
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed May 3, 2024
1 parent d857c7f commit bb83188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dank_mids/_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def start(self, batch: Union["_Batch", "DankBatch", None] = None) -> None:
pass

async def _debug_daemon(self) -> None:
while self and not self._done.is_set():
# NOTE: _resonse works for RPCRequst and eth_call, _done works for _Batch classes
while self and self._response is None and not self._done.is_set():
await asyncio.sleep(60)
if not self._done.is_set():
logger.debug(f"{self} has not received data after {time.time() - self._start}s")
Expand Down

0 comments on commit bb83188

Please sign in to comment.