Skip to content

Commit

Permalink
Another attempt to fix multithreading.
Browse files Browse the repository at this point in the history
  • Loading branch information
etianen committed Jan 11, 2018
1 parent ea2269a commit dcf7952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .python-version

This file was deleted.

3 changes: 2 additions & 1 deletion django_s3_storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def __init__(self, storage):
connection_kwargs["aws_session_token"] = storage.settings.AWS_SESSION_TOKEN
if storage.settings.AWS_S3_ENDPOINT_URL:
connection_kwargs["endpoint_url"] = storage.settings.AWS_S3_ENDPOINT_URL
self.s3_connection = boto3.client("s3", config=Config(
self.session = boto3.session.Session()
self.s3_connection = self.session.client("s3", config=Config(
s3={"addressing_style": storage.settings.AWS_S3_ADDRESSING_STYLE},
signature_version=storage.settings.AWS_S3_SIGNATURE_VERSION,
), **connection_kwargs)
Expand Down

0 comments on commit dcf7952

Please sign in to comment.