New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated amqp daemons #2451
Conversation
4c80364
to
8976313
Compare
app/models/order.rb
Outdated
@@ -154,11 +154,29 @@ def funds_used | |||
origin_locked - locked | |||
end | |||
|
|||
def trigger_pusher_event | |||
def ws_notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ranger queue?
6fd06a6
to
c78c268
Compare
c78c268
to
350fc4f
Compare
ef494d8
to
55b1d49
Compare
0746322
to
384a7da
Compare
end | ||
|
||
ActiveSupport.on_load(:active_record) { ActiveRecord::Base.include EventAPI::ActiveRecord::Extension } | ||
require 'amqp/event_api' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after require put the line:
ActiveSupport.on_load(:active_record) { ActiveRecord::Base.include EventAPI::ActiveRecord::Extension }
app/models/order.rb
Outdated
@@ -19,7 +19,7 @@ class Order < ApplicationRecord | |||
|
|||
belongs_to :ask_currency, class_name: 'Currency', foreign_key: :ask | |||
belongs_to :bid_currency, class_name: 'Currency', foreign_key: :bid | |||
after_commit :trigger_pusher_event | |||
after_commit :trigger_order_event |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only trigger_event
as a model norm
also we know it's an order
order.trigger_event
384a7da
to
932d54b
Compare
932d54b
to
1c8ab98
Compare
No description provided.