From 5fd74172616de937eab969d9c8a82670fbf4f8cf Mon Sep 17 00:00:00 2001 From: Yu Xia Date: Tue, 17 Sep 2019 12:50:34 -0700 Subject: [PATCH] remove domain specific limiter on pollfor APIs (#2558) remove domain specific limiter on pollfor APIs --- service/frontend/workflowHandler.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/service/frontend/workflowHandler.go b/service/frontend/workflowHandler.go index b47d5600026..950016a07b5 100644 --- a/service/frontend/workflowHandler.go +++ b/service/frontend/workflowHandler.go @@ -358,10 +358,6 @@ func (wh *WorkflowHandler) PollForActivityTask( return nil, wh.error(errRequestNotSet, scope) } - if ok := wh.allow(pollRequest); !ok { - return nil, wh.error(createServiceBusyError(), scope) - } - wh.Service.GetLogger().Debug("Received PollForActivityTask") if err := common.ValidateLongPollContextTimeout( ctx, @@ -442,10 +438,6 @@ func (wh *WorkflowHandler) PollForDecisionTask( return nil, wh.error(errRequestNotSet, scope) } - if ok := wh.allow(pollRequest); !ok { - return nil, wh.error(createServiceBusyError(), scope) - } - wh.Service.GetLogger().Debug("Received PollForDecisionTask") if err := common.ValidateLongPollContextTimeout( ctx,