Skip to content

Commit

Permalink
use compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rromanchuk committed Dec 31, 2023
1 parent fd9226c commit 6813019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion personal/app/services/tds/tafs/process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ class Process < Service
attr_reader :batch

let(:client) { Aws::S3::Client.new(region: 'us-east-1') }
let(:xml) { Ox.load(resp.body.read, mode: :hash) }
let(:xml) { Ox.load(gzip.read, mode: :hash) }
let(:resp) { client.get_object(bucket: :pireps, key: batch.key) }
let(:gzip) { Zlib::GzipReader.new(resp.body) }

def initialize(batch_id)
super()
Expand Down

0 comments on commit 6813019

Please sign in to comment.