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

Autowiring HmacValidator instead of creating a new instance everytime #333

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

pavan77
Copy link
Contributor

@pavan77 pavan77 commented Nov 22, 2024

Though the HmacValidator was specified as a bean in the Webhook controllers, the method was called for every request which means that the instance is not singleton and annotating it as a bean is also not helpful. So this small change injects HmacValidator in the constructor of the controller

@pavan77 pavan77 requested a review from a team as a code owner November 22, 2024 06:46
@pavan77
Copy link
Contributor Author

pavan77 commented Nov 22, 2024

@Kwok-he-Chu the small PR that we discussed

Copy link
Contributor

@gcatanese gcatanese left a comment

Choose a reason for hiding this comment

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

That's great, thank you for the contribution :-)

@gcatanese gcatanese merged commit ad12cde into adyen-examples:main Nov 25, 2024
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.

2 participants