feat: add lock

Browse Source
main
git 2024-05-25 00:33:40 +08:00
parent 994478a00f
commit 13675c3e86
Signed by: git
GPG Key ID: 3F65EFFA44207ADD
1 changed files with 1 additions and 1 deletions

View File

@ -54,8 +54,8 @@ func (r etcdLock) LockWithRetries(key string, unixTsToExpireNs int64) error {
log.INFO.Printf("acquired lock=%s failed, retries=%d, err=%s", key, i, err)
time.Sleep(time.Millisecond * 100)
}
return ErrRedisLockFailed
return ErrRedisLockFailed
}
func (r etcdLock) Lock(key string, unixTsToExpireNs int64) error {