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

Replace types.Error with error interface (#122) #125

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

kirugan
Copy link
Contributor

@kirugan kirugan commented Jan 16, 2025

This is just first step to the refactoring, will replace the rest in other PR-s once I'm sure there will be no problems

}

func NewPoller(interval time.Duration, pollMethod func(ctx context.Context) *types.Error) *Poller {
func NewPoller(interval time.Duration, pollMethod func(ctx context.Context) error) *Poller {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

return value is used only in this case log.Error().Err(err).Msg("Error polling") which expects error anyway

Copy link
Collaborator

@gusin13 gusin13 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kirugan kirugan merged commit b6f3084 into main Jan 16, 2025
11 checks passed
@kirugan kirugan deleted the issue-122-replace-types.Error-with-error branch January 16, 2025 08:50
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