Skip to content

Commit

Permalink
remove domain specific limiter on pollfor APIs (uber#2558)
Browse files Browse the repository at this point in the history
remove domain specific limiter on pollfor APIs
  • Loading branch information
yux0 authored and Wenquan Xing committed Sep 17, 2019
1 parent 12a335d commit 5fd7417
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions service/frontend/workflowHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5fd7417

Please sign in to comment.