diff --git a/lib/active_storage/service/cellar_service.rb b/lib/active_storage/service/cellar_service.rb index b19d078aa..f704fcf49 100644 --- a/lib/active_storage/service/cellar_service.rb +++ b/lib/active_storage/service/cellar_service.rb @@ -22,6 +22,12 @@ module ActiveStorage end end + def download_chunk(key, range) + instrument :download_chunk, key: key, range: range do + @adapter.session { |s| s.download(key, range: range) } + end + end + def delete(key) instrument :delete, key: key do @adapter.session { |s| s.delete(key) }