Skip to content

Commit

Permalink
Fix 'double ack'. (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyE authored Jul 11, 2022
1 parent 7e85d8d commit 5112e29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/listeners/enrollment_event_batch_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def create_enrollment_batch(delivery_info, parsed_event, body, event_time)
:event_time => event_time.to_i.to_s
})
end
channel.ack(delivery_info.delivery_tag, false)
end
def create_batch_transaction(delivery_info, parsed_event, body, m_headers, event_time)
EnrollmentEvents::Batch.create_batch_transaction_and_yield(parsed_event, body, m_headers, event_time) do |transaction|
Expand Down Expand Up @@ -128,4 +127,4 @@ def self.run
conn.close
end
end
end
end

0 comments on commit 5112e29

Please sign in to comment.