Skip to content

Commit

Permalink
#89 experimental ThreadPoolExecutor de-activation
Browse files Browse the repository at this point in the history
  • Loading branch information
ome9ax committed Apr 9, 2023
1 parent f7d1974 commit 3ce0a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target_s3_json/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def upload_file(config: Dict[str, Any], file_metadata: Dict) -> None:
async def upload_thread(config: Dict[str, Any], file_metadata: Dict) -> Future:

return await to_thread(
config['executor'].submit,
*([config['executor'].submit] if config.get('thread_pool', True) else []),
upload_file,
config,
file_metadata)
Expand Down

0 comments on commit 3ce0a9b

Please sign in to comment.