Skip to content

Commit

Permalink
IWF-397: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Dec 6, 2024
1 parent a983a76 commit 915c6d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/common/rpc/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func InvokeWorkerRpc(
defer cancel()
workerReq := apiClient.DefaultApi.ApiV1WorkflowWorkerRpcPost(rpcCtx)

// creating empty maps for signalChannelInfos & internalChannelInfos instead of passing in nils
// using nil causes problems when converting to map model defined with OpenAPI
var signalChannelInfos map[string]iwfidl.ChannelInfo
if rpcPrep.SignalChannelInfo == nil {
signalChannelInfos = make(map[string]iwfidl.ChannelInfo)
Expand Down

0 comments on commit 915c6d4

Please sign in to comment.