3333 // RetryTaskV2 represents retry task v2 error.
3434 RetryTaskV2 struct {
3535 Message string
36- NamespaceId string
36+ NamespaceId string
3737 WorkflowId string
3838 RunId string
3939 StartEventId int64
4848func NewRetryTaskV2 (message , namespaceId , workflowId , runId string , startEventId , startEventVersion , endEventId , endEventVersion int64 ) * RetryTaskV2 {
4949 return & RetryTaskV2 {
5050 Message : message ,
51- NamespaceId : namespaceId ,
51+ NamespaceId : namespaceId ,
5252 WorkflowId : workflowId ,
5353 RunId : runId ,
5454 StartEventId : startEventId ,
@@ -71,7 +71,7 @@ func (e *RetryTaskV2) status() *status.Status {
7171 st := status .New (codes .Aborted , e .Message )
7272 st , _ = st .WithDetails (
7373 & failure.RetryTaskV2 {
74- NamespaceId : e .NamespaceId ,
74+ NamespaceId : e .NamespaceId ,
7575 WorkflowId : e .WorkflowId ,
7676 RunId : e .RunId ,
7777 StartEventId : e .StartEventId ,
@@ -86,13 +86,13 @@ func (e *RetryTaskV2) status() *status.Status {
8686func newRetryTaskV2 (st * status.Status , failure * failure.RetryTaskV2 ) * RetryTaskV2 {
8787 return & RetryTaskV2 {
8888 Message : st .Message (),
89- NamespaceId : failure .NamespaceId ,
90- WorkflowId : failure .WorkflowId ,
91- RunId : failure .RunId ,
92- StartEventId : failure .StartEventId ,
93- StartEventVersion : failure .StartEventVersion ,
94- EndEventId : failure .EndEventId ,
95- EndEventVersion : failure .EndEventVersion ,
89+ NamespaceId : failure .GetNamespaceId () ,
90+ WorkflowId : failure .GetWorkflowId () ,
91+ RunId : failure .GetRunId () ,
92+ StartEventId : failure .GetStartEventId () ,
93+ StartEventVersion : failure .GetStartEventVersion () ,
94+ EndEventId : failure .GetEndEventId () ,
95+ EndEventVersion : failure .GetEndEventVersion () ,
9696 st : st ,
9797 }
9898}
0 commit comments