Skip to content

fix!: Unlock doesn't release connection - #10

Merged
allisson merged 1 commit into
allisson:masterfrom
BradLugo:fix-conn-close
Aug 1, 2022
Merged

allisson merged 1 commit into
allisson:masterfrom
BradLugo:fix-conn-close

Conversation

@BradLugo

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: Changes the Locker interface and requires the user
to call Close instead of Unlock to release the connection.

Closes #9

BREAKING CHANGE: Changes the Locker interface and requires the user
to call Close instead of Unlock to release the connection.
@BradLugo

Copy link
Copy Markdown
Contributor Author

This fix requires a major version bump. I'm happy to modify the solution to something that doesn't require one if anyone has suggestions.

@allisson allisson left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@BradLugo Thanks!

I'll prepare a 3.0.0 release ASAP 👍

@allisson
allisson merged commit b4bcd2a into allisson:master Aug 1, 2022
@allisson

allisson commented Aug 1, 2022

Copy link
Copy Markdown
Owner

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.

Document that Unlock leaves the Lock object unusable (because it calls l.conn.Close)

2 participants