Skip to content

Commit

Permalink
fix(debug): add _daemon to __slots__ (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Sep 28, 2023
1 parent 61b4855 commit 7cbffe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dank_mids/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _should_batch_method(method: str) -> bool:
return all(bypass not in method for bypass in BYPASS_METHODS)

class RPCRequest(_RequestMeta[RawResponse]):
__slots__ = 'method', 'params', 'should_batch', '_started', '_retry'
__slots__ = 'method', 'params', 'should_batch', '_started', '_retry', '_daemon'
dict_responses = set()
str_responses = set()

Expand Down Expand Up @@ -330,7 +330,7 @@ def semaphore(self) -> a_sync.Semaphore:
_Request = TypeVar("_Request")

class _Batch(_RequestMeta[List[RPCResponse]], Iterable[_Request]):
__slots__ = 'calls', '_fut', '_lock'
__slots__ = 'calls', '_fut', '_lock', '_daemon'
calls: List[_Request]

def __init__(self, controller: "DankMiddlewareController", calls: Iterable[_Request]):
Expand Down

0 comments on commit 7cbffe8

Please sign in to comment.