remove domain specific limiter on pollfor APIs
remove domain specific limiter on pollfor APIs
@@ -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,
