From 21b4929e1a6ec56e790268b7c4cf5acd67ea2121 Mon Sep 17 00:00:00 2001 From: Colin McIntosh Date: Thu, 2 Sep 2021 00:29:44 -0400 Subject: [PATCH] Fixed parseSeq so it doesn't strip the negative symbol off sequence numbers. --- lock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lock.go b/lock.go index 33a6ecda..9e0a8df0 100644 --- a/lock.go +++ b/lock.go @@ -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, "__")