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

fix: improve error handling in ChainCache.Set method #280

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

semihbkgr
Copy link
Contributor

Improvements to error handling:

  • lib/cache/chain.go: Modified the error formatting to use %w for wrapping errors and simplified the error aggregation by using errors.Join.

It will allow us to handle the underlying errors returned by Set.

Copy link
Owner

@eko eko left a comment

Choose a reason for hiding this comment

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

Thank you @semihbkgr

@eko eko merged commit 9cd53a8 into eko:master Mar 22, 2025
10 checks passed
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