Skip to content

Commit

Permalink
Define Aws constants up front
Browse files Browse the repository at this point in the history
Aws and multithreading may not play well at all times.

See https://aws.amazon.com/blogs/developer/threading-with-the-aws-sdk-for-ruby/
for more details.
  • Loading branch information
BanzaiMan committed Mar 20, 2018
1 parent 0111acc commit 42866e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dpl/provider/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
require 'aws-sdk'
require 'mime-types'

Aws.eager_autoload!

module DPL
class Provider
class S3 < Provider
Expand Down

0 comments on commit 42866e7

Please sign in to comment.