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

re-implement Lockable interface to drop requirement on driver impls. #33

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

isacikgoz
Copy link
Member

Summary

This just bugged me. First of all, we should always return concrete types, this was just a remnant from initial implementation. No need to carry on. Apart from that, we are expecting driver itself to implement Lockable interface that returns an actual Locker interface.

We still support drivers can do Lock and can't. Even though there shouldn't be a code change required, this can be targeted for v2.

@isacikgoz isacikgoz added the 2: Dev Review Requires review by a core committer label Oct 23, 2024
Copy link
Member

@agnivade agnivade left a comment

Choose a reason for hiding this comment

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

Great improvement. Just a small comment.

go.sum Show resolved Hide resolved
Copy link
Member

@agarciamontoro agarciamontoro left a comment

Choose a reason for hiding this comment

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

Great refactor! Much cleaner now :)

@isacikgoz isacikgoz added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Oct 25, 2024
@isacikgoz isacikgoz merged commit 06b4b8c into master Oct 25, 2024
2 checks passed
@isacikgoz isacikgoz deleted the improve-lockable-interface branch October 25, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants