소스 검색

合并冲突

kobe6258 2 달 전
부모
커밋
58ee2dd864
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      utils/lock/distrubtLock.go

+ 1 - 1
utils/lock/distrubtLock.go

@@ -63,7 +63,7 @@ func renewLock(key, holder string, expiration int) {
 		script := redis.NewScript(`
             local key = KEYS[1]
 			local clientId = ARGV[1]
-			local expiration = tonumber(ARGV[2])
+			local expiration = tonumber(ARGV[2]
             if redis.call("get", KEYS[1]) == ARGV[1] then
                 redis.call("SET", key, clientId, "EX", expiration)
 				 return 1