Skip to content

Commit e5c0ccf

Browse files
authored
Close Redis Pool (#371)
1 parent 1c40dd7 commit e5c0ccf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tcsocket/app/worker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ async def update_enquiry_options(ctx, company):
153153
data['last_updated'] = timestamp_ms()
154154
redis = await create_pool(ctx['settings'].redis_settings)
155155
await store_enquiry_data(redis, company, data)
156+
redis.close()
156157

157158

158159
async def post_data(session, url, data, company):

0 commit comments

Comments
 (0)