@@ -117,7 +117,7 @@ func (wc *workflowClient) StartWorkflow(
117117 var response * s.StartWorkflowExecutionResponse
118118
119119 // Start creating workflow request.
120- err = backoff .Retry (
120+ err = backoff .Retry (ctx ,
121121 func () error {
122122 tchCtx , cancel := newTChannelContext (ctx )
123123 defer cancel ()
@@ -162,7 +162,7 @@ func (wc *workflowClient) SignalWorkflow(ctx context.Context, workflowID string,
162162 Identity : common .StringPtr (wc .identity ),
163163 }
164164
165- return backoff .Retry (
165+ return backoff .Retry (ctx ,
166166 func () error {
167167 tchCtx , cancel := newTChannelContext (ctx )
168168 defer cancel ()
@@ -181,7 +181,7 @@ func (wc *workflowClient) CancelWorkflow(ctx context.Context, workflowID string,
181181 Identity : common .StringPtr (wc .identity ),
182182 }
183183
184- return backoff .Retry (
184+ return backoff .Retry (ctx ,
185185 func () error {
186186 tchCtx , cancel := newTChannelContext (ctx )
187187 defer cancel ()
@@ -203,7 +203,7 @@ func (wc *workflowClient) TerminateWorkflow(ctx context.Context, workflowID stri
203203 Identity : common .StringPtr (wc .identity ),
204204 }
205205
206- err := backoff .Retry (
206+ err := backoff .Retry (ctx ,
207207 func () error {
208208 tchCtx , cancel := newTChannelContext (ctx )
209209 defer cancel ()
@@ -231,7 +231,7 @@ GetHistoryLoop:
231231 }
232232
233233 var response * s.GetWorkflowExecutionHistoryResponse
234- err := backoff .Retry (
234+ err := backoff .Retry (ctx ,
235235 func () error {
236236 var err1 error
237237 tchCtx , cancel := newTChannelContext (ctx )
@@ -352,7 +352,7 @@ func (wc *workflowClient) ListClosedWorkflow(ctx context.Context, request *s.Lis
352352 request .Domain = common .StringPtr (wc .domain )
353353 }
354354 var response * s.ListClosedWorkflowExecutionsResponse
355- err := backoff .Retry (
355+ err := backoff .Retry (ctx ,
356356 func () error {
357357 var err1 error
358358 tchCtx , cancel := newTChannelContext (ctx )
@@ -376,7 +376,7 @@ func (wc *workflowClient) ListOpenWorkflow(ctx context.Context, request *s.ListO
376376 request .Domain = common .StringPtr (wc .domain )
377377 }
378378 var response * s.ListOpenWorkflowExecutionsResponse
379- err := backoff .Retry (
379+ err := backoff .Retry (ctx ,
380380 func () error {
381381 var err1 error
382382 tchCtx , cancel := newTChannelContext (ctx )
@@ -423,7 +423,7 @@ func (wc *workflowClient) QueryWorkflow(ctx context.Context, workflowID string,
423423 }
424424
425425 var resp * s.QueryWorkflowResponse
426- err := backoff .Retry (
426+ err := backoff .Retry (ctx ,
427427 func () error {
428428 tchCtx , cancel := newTChannelContext (ctx )
429429 defer cancel ()
@@ -444,7 +444,7 @@ func (wc *workflowClient) QueryWorkflow(ctx context.Context, workflowID string,
444444// - BadRequestError
445445// - InternalServiceError
446446func (dc * domainClient ) Register (ctx context.Context , request * s.RegisterDomainRequest ) error {
447- return backoff .Retry (
447+ return backoff .Retry (ctx ,
448448 func () error {
449449 tchCtx , cancel := newTChannelContext (ctx )
450450 defer cancel ()
@@ -465,7 +465,7 @@ func (dc *domainClient) Describe(ctx context.Context, name string) (*s.DomainInf
465465 }
466466
467467 var response * s.DescribeDomainResponse
468- err := backoff .Retry (
468+ err := backoff .Retry (ctx ,
469469 func () error {
470470 tchCtx , cancel := newTChannelContext (ctx )
471471 defer cancel ()
@@ -493,7 +493,7 @@ func (dc *domainClient) Update(ctx context.Context, name string, domainInfo *s.U
493493 Configuration : domainConfig ,
494494 }
495495
496- return backoff .Retry (
496+ return backoff .Retry (ctx ,
497497 func () error {
498498 tchCtx , cancel := newTChannelContext (ctx )
499499 defer cancel ()
0 commit comments