-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add election logic for PgElection (#5249)
* feat: init PgElection * fix: release advisory lock * fix: handle duplicate keys * chore: update comments * fix: unlock if acquired the lock * chore: add TODO and avoid unwrap * refactor: check both lock and expire time, add more comments * test: add unit test for pg election * chore: fmt * chore: typo * fix: add feature gate * chore: visibility * chore: follow review comments
- Loading branch information
1 parent
13ed105
commit 89f2e15
Showing
4 changed files
with
739 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.