Skip to content

Commit

Permalink
Add separate loop kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
bitphage committed Dec 3, 2019
1 parent a161e8d commit cb43c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grapheneapi/aio/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@


class Rpc(SyncRpc):
def __init__(self, url, *args, **kwargs):
def __init__(self, url, *args, loop=None, **kwargs):
self.api_id = {}
self._request_id = 0
self.url = url
self.loop = kwargs.get("loop")
self.loop = loop

def __getattr__(self, name):
""" Map all methods to RPC calls and pass through the arguments
Expand Down

0 comments on commit cb43c24

Please sign in to comment.