mirror of https://github.com/rails/rails
9d6b68446d
Before this commit, when a file was uploaded to a mirror service, the file upload to each service (primary and mirrors) was happening synchronously: ```rb def upload(key, io, checksum: nil, **options) each_service.collect do |service| io.rewind service.upload key, io, checksum: checksum, **options end end ``` In this commit, we change this behavior to only upload the file to the primary service synchronously and then enqueue a job to upload the file to the mirrors asynchronously. |
||
---|---|---|
.. | ||
azure_storage_service.rb | ||
configurator.rb | ||
disk_service.rb | ||
gcs_service.rb | ||
mirror_service.rb | ||
registry.rb | ||
s3_service.rb |