[MSP-1388]::[v] работают lock/unlock

This commit is contained in:
Leonid Nikolaev committed 2023-01-27 18:52:41 +03:00
1 parent 626ffd29e6
commit b4e9c9a563
8 files changed
+38 -21

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func makeKey(prefix, key string) string {
func (rc *RC) Lock(key string, ttl time.Duration) (string, error) {
key = makeKey(rc.prefix, key)
if ttl > 0 {
if ttl == 0 {
ttl = rc.timeOut
}