From a91c3ef6cef0fe5a1645c043e7d4a5ef96e82c4f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 15 Nov 2016 15:43:33 +0100 Subject: Delegate processing of incoming PuSH data to background workers --- app/controllers/api/subscriptions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/api/subscriptions_controller.rb b/app/controllers/api/subscriptions_controller.rb index c3aeee94d..058ae8f5e 100644 --- a/app/controllers/api/subscriptions_controller.rb +++ b/app/controllers/api/subscriptions_controller.rb @@ -16,7 +16,7 @@ class Api::SubscriptionsController < ApiController subscription = @account.subscription(api_subscription_url(@account.id)) if subscription.verify(body, request.headers['HTTP_X_HUB_SIGNATURE']) - ProcessFeedService.new.call(body, @account) + ProcessingWorker.perform_async(@account.id, body.force_encoding('UTF-8')) head 201 else head 202 -- cgit