Skip to content

Migrate to official mongo-driver + go modules #5

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

Merged
merged 5 commits into from
Dec 8, 2020

Conversation

dmichel1
Copy link
Contributor

Hi,

Sorry in advance for the rather lengthy pull request.

I had a need to use this locking library with a MongoDB Atlas cluster and the mgo library didn't support mongodb+srv lookups so I decided to rewrite it. In the process I also migrated the library to a go module (let me know if you want to split this up).

The biggest API difference (breaking change) is every method now takes a context as its first argument.

Thanks for the review + library.

Closes #3

@coveralls
Copy link

Pull Request Test Coverage Report for Build 24

  • 121 of 134 (90.3%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.8%) to 92.683%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lock.go 118 131 90.08%
Totals Coverage Status
Change from base Build 22: -1.8%
Covered Lines: 494
Relevant Lines: 533

💛 - Coveralls

@michaelfinch
Copy link
Collaborator

This is great, thank you! I will review within the next week

@dmichel1
Copy link
Contributor Author

hey @michaelfinch would love to get this contributed back whenever you have some time to review - thanks 👍

@michaelfinch
Copy link
Collaborator

Sorry for the delay. Looks good, thanks again.

@michaelfinch michaelfinch merged commit 4db518e into square:master Dec 8, 2020
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.

Any plans for switching to official mongo-driver?
4 participants