Skip to content

Commit

Permalink
pass input for real
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Feb 14, 2024
1 parent 8c5948b commit 637f919
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flow/workflows/normalize_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ func NormalizeFlowWorkflow(ctx workflow.Context,
var peerConfigs *protos.FetchSourceAndDestinationConfigsOutput
if err := workflow.ExecuteLocalActivity(
fetchPeerConfigsCtx, flowable.FetchSourceAndDestinationConfigs,
&protos.FetchSourceAndDestinationConfigsInput{
FlowJobName: config.FlowJobName,
SourcePeerName: config.Source.Name,
DestinationPeerName: config.Destination.Name,
},
).Get(ctx, &peerConfigs); err != nil {
return nil, fmt.Errorf("failed to fetch peer configs: %w", err)
}
Expand Down
5 changes: 5 additions & 0 deletions flow/workflows/sync_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ func (s *SyncFlowExecution) executeSyncFlow(
var peerConfigs *protos.FetchSourceAndDestinationConfigsOutput
if err := workflow.ExecuteLocalActivity(
fetchPeerConfigsCtx, flowable.FetchSourceAndDestinationConfigs,
&protos.FetchSourceAndDestinationConfigsInput{
FlowJobName: config.FlowJobName,
SourcePeerName: config.Source.Name,
DestinationPeerName: config.Destination.Name,
},
).Get(ctx, &peerConfigs); err != nil {
return nil, fmt.Errorf("failed to fetch peer configs: %w", err)
}
Expand Down

0 comments on commit 637f919

Please sign in to comment.