Skip to content

Commit

Permalink
Provide patch for event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
prijendev committed Dec 2, 2024
1 parent 335b4bc commit f08242b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup

setup(name='target-stitch',
version='4.0.0',
version='4.0.1',
description='Singer.io target for the Stitch API',
author='Stitch',
url='https://singer.io',
Expand All @@ -12,11 +12,11 @@
install_requires=[
'jsonschema==2.6.0',
'mock==2.0.0',
'requests==2.31.0',
'requests==2.32.0',
'singer-python==6.0.0',
'psutil==5.6.6',
'simplejson==3.11.1',
'aiohttp==3.9.5',
'aiohttp==3.10.11',
'ciso8601',
],
extras_require={
Expand Down
2 changes: 1 addition & 1 deletion target_stitch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def start_loop(loop):
asyncio.set_event_loop(loop)
global OUR_SESSION
timeout = aiohttp.ClientTimeout(sock_connect=60, sock_read=60)
OUR_SESSION = aiohttp.ClientSession(connector=aiohttp.TCPConnector(), timeout=timeout)
OUR_SESSION = aiohttp.ClientSession(connector=aiohttp.TCPConnector(loop=loop), timeout=timeout)
loop.run_forever()

new_loop = asyncio.new_event_loop()
Expand Down

0 comments on commit f08242b

Please sign in to comment.