Skip to content

Commit

Permalink
Fixed parseSeq so it doesn't strip the negative symbol off sequence n…
Browse files Browse the repository at this point in the history
…umbers.
  • Loading branch information
Colin McIntosh authored and nemith committed Feb 9, 2022
1 parent c9bbb5d commit 21b4929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewLock(c *Conn, path string, acl []ACL) *Lock {
}

func parseSeq(path string) (int, error) {
parts := strings.Split(path, "-")
parts := strings.Split(path, "lock-")
// python client uses a __LOCK__ prefix
if len(parts) == 1 {
parts = strings.Split(path, "__")
Expand Down

0 comments on commit 21b4929

Please sign in to comment.