Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahzs committed Aug 31, 2018
1 parent 054d096 commit 7ea14a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/metrics_update_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def perform(path, db_runtime)
query.average = (query.average * query.counter + db_runtime) / (query.counter += 1)
puts "#{number_of_the_day} Checkpoint 4"
# https://stackoverflow.com/questions/24270994/sudden-inexplicable-active-record-connection-timeouts-while-testing-with-rspec
ActiveRecord::Base.connection_pool.with_connection do |conn|
ActiveRecord::Base.connection_pool.with_connection do |_conn|
query.save
end
puts "#{number_of_the_day} Checkpoint 5"
Expand Down

0 comments on commit 7ea14a1

Please sign in to comment.