Skip to content
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

Merged
merged 4 commits into from Feb 19, 2020
Merged

Remove deprecated amqp daemons #2451

merged 4 commits into from Feb 19, 2020

Conversation

mnaichuk
Copy link
Member

No description provided.

@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch from 4c80364 to 8976313 Compare February 17, 2020 13:51
@@ -154,11 +154,29 @@ def funds_used
origin_locked - locked
end

def trigger_pusher_event
def ws_notify
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is ranger queue?

@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch 4 times, most recently from 6fd06a6 to c78c268 Compare February 17, 2020 14:28
@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch from c78c268 to 350fc4f Compare February 17, 2020 14:51
@mnaichuk mnaichuk added the v2.4 label Feb 17, 2020
@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch 3 times, most recently from ef494d8 to 55b1d49 Compare February 18, 2020 14:11
@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch 2 times, most recently from 0746322 to 384a7da Compare February 18, 2020 15:08
end

ActiveSupport.on_load(:active_record) { ActiveRecord::Base.include EventAPI::ActiveRecord::Extension }
require 'amqp/event_api'
Copy link

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 }

@@ -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
Copy link

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

@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch from 384a7da to 932d54b Compare February 19, 2020 09:13
@mnaichuk mnaichuk force-pushed the feature/remove-useless-workers branch from 932d54b to 1c8ab98 Compare February 19, 2020 10:16
@mod mod removed the PR: Review label Feb 19, 2020
@mod mod merged commit a9a8fbe into master Feb 19, 2020
@mnaichuk mnaichuk deleted the feature/remove-useless-workers branch December 6, 2020 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants