Skip to content

Commit

Permalink
Manually copy proxy options (#1502)
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz committed Jun 6, 2024
1 parent 5c171b7 commit 17193aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/service_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@ type WorkflowServiceProxyOptions struct {
// be forwarded to the passed in WorkflowService Client. GRPC interceptors can be added on the Server or Client to adjust
// requests and responses.
func NewWorkflowServiceProxyServer(options WorkflowServiceProxyOptions) (workflowservice.WorkflowServiceServer, error) {
return proxy.NewWorkflowServiceProxyServer(proxy.WorkflowServiceProxyOptions(options))
return proxy.NewWorkflowServiceProxyServer(proxy.WorkflowServiceProxyOptions{
// These options are expected to be kept mostly in sync, but we can't do a
// naive type conversion because we want users to be able to update to newer
// API library versions with older SDK versions.
Client: options.Client,
})
}

0 comments on commit 17193aa

Please sign in to comment.