@@ -53,7 +53,7 @@ func (c *Client) FetchWorkflowMetadata(ctx context.Context, id string, opts ...F
53
53
oops [i ] = api .FetchOrchestrationMetadataOptions (o )
54
54
}
55
55
meta , err := c .thgc .FetchOrchestrationMetadata (ctx , api .InstanceID (id ), oops ... )
56
- return ( * WorkflowMetadata )( meta ) , err
56
+ return & WorkflowMetadata { Metadata : meta } , err
57
57
}
58
58
59
59
// WaitForWorkflowStart waits for an workflow to start running and returns an
@@ -68,7 +68,7 @@ func (c *Client) WaitForWorkflowStart(ctx context.Context, id string, opts ...Fe
68
68
oops [i ] = api .FetchOrchestrationMetadataOptions (o )
69
69
}
70
70
meta , err := c .thgc .WaitForOrchestrationStart (ctx , api .InstanceID (id ), oops ... )
71
- return ( * WorkflowMetadata )( meta ) , err
71
+ return & WorkflowMetadata { meta } , err
72
72
}
73
73
74
74
// WaitForWorkflowCompletion waits for an workflow to complete and returns an
@@ -83,7 +83,7 @@ func (c *Client) WaitForWorkflowCompletion(ctx context.Context, id string, opts
83
83
oops [i ] = api .FetchOrchestrationMetadataOptions (o )
84
84
}
85
85
meta , err := c .thgc .WaitForOrchestrationCompletion (ctx , api .InstanceID (id ), oops ... )
86
- return ( * WorkflowMetadata )( meta ) , err
86
+ return & WorkflowMetadata { meta } , err
87
87
}
88
88
89
89
// TerminateWorkflow terminates a running workflow by causing it to stop
0 commit comments