Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cappl 391 wire in workflow registry #15460

Merged
merged 9 commits into from
Nov 29, 2024
Merged

Conversation

ettec
Copy link
Collaborator

@ettec ettec commented Nov 29, 2024

@ettec ettec requested review from a team as code owners November 29, 2024 12:36
@ettec ettec requested a review from ilija42 November 29, 2024 12:36
custmsg.NewLabeler(), clockwork.NewRealClock(), keys[0])

loader := syncer.NewWorkflowRegistryContractLoader(cfg.Capabilities().WorkflowRegistry().Address(), func(ctx context.Context, bytes []byte) (syncer.ContractReader, error) {
return relayer.NewContractReader(ctx, bytes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify this to just relayer.NewContractReader I think?

Copy link
Collaborator Author

@ettec ettec Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs to be the factory method, internally the workflow registry create this on demand am assuming for good reason

}, eventHandler)

wfSyncer := syncer.NewWorkflowRegistry(globalLogger, func(ctx context.Context, bytes []byte) (syncer.ContractReader, error) {
return relayer.NewContractReader(ctx, bytes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this

Copy link
Contributor

github-actions bot commented Nov 29, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@ettec ettec enabled auto-merge November 29, 2024 14:59
@ettec ettec added this pull request to the merge queue Nov 29, 2024
Merged via the queue into develop with commit 44cab8d Nov 29, 2024
155 of 157 checks passed
@ettec ettec deleted the cappl-391-wire-in-workflow-registry branch November 29, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants