Fix infinite loop in persistenceMetricClient
Summary:
This revision fixes the bug where persistenceMetricClient erroneously calls itself
recursively, causing an infinite recursion and stack overflow
Reviewers: maxim
@@ -279,7 +279,7 @@ func (p *taskPersistenceClient) UpdateTaskList(request *UpdateTaskListRequest) (
p.m3Client.IncCounter(metrics.UpdateTaskListScope, metrics.WorkflowRequests)
sw := p.m3Client.StartTimer(metrics.UpdateTaskListScope, metrics.WorkflowLatency)
- response, err := p.UpdateTaskList(request)
+ response, err := p.persistence.UpdateTaskList(request)
sw.Stop()
if err != nil {
