Skip to content

Commit

Permalink
Close Redis Pool (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextford11 authored Jul 15, 2021
1 parent 1c40dd7 commit e5c0ccf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tcsocket/app/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ async def update_enquiry_options(ctx, company):
data['last_updated'] = timestamp_ms()
redis = await create_pool(ctx['settings'].redis_settings)
await store_enquiry_data(redis, company, data)
redis.close()


async def post_data(session, url, data, company):
Expand Down

0 comments on commit e5c0ccf

Please sign in to comment.