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 errcheck in ./common/persistence/ #3743

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
^

Why?
This will surface errors if we fail to close SQL databases in prod and in tests

How did you test it?
Reran errcheck

Potential risks
None because this just logs the close error instead of failing

Is hotfix candidate?
No

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner December 21, 2022 00:12
@@ -1044,6 +1044,7 @@ type (
}

// Closeable is an interface for any entity that supports a close operation to release resources
// TODO: allow this method to return errors
Copy link
Member

Choose a reason for hiding this comment

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

It might not be easy :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing worth having comes easy!

@MichaelSnowden MichaelSnowden merged commit d896157 into master Dec 21, 2022
@MichaelSnowden MichaelSnowden deleted the errcheck/common/persistence branch December 21, 2022 20: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.

None yet

2 participants