Skip to content

Commit

Permalink
pass the loop through
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Nov 19, 2020
1 parent 4c9a6e7 commit c37a24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molotov/session.py
Expand Up @@ -69,7 +69,7 @@ async def send_event(self, event, **options):
async def _request(self, *args, **kw):
args = list(args)
if self._resolve_dns:
resolved = await resolve(args[1])
resolved = await resolve(args[1], loop=self.loop)
args[1] = resolved[0]
args = tuple(args)
req = super(LoggedClientSession, self)._request
Expand Down

0 comments on commit c37a24f

Please sign in to comment.