Skip to content

Commit d8c4d23

Browse files
committed
Fix RedisLockRegistry for proper local variable
**Auto-cherry-pick to `6.4.x`**
1 parent c71d5b3 commit d8c4d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ private boolean removeLockKeyWithScript(RedisScript<Boolean> redisScript) {
712712
String unLockChannelKeyToUse = RedisLockRegistry.this.unLockChannelKey + ":" + this.lockKey;
713713
return Boolean.TRUE.equals(RedisLockRegistry.this.redisTemplate.execute(
714714
redisScript, List.of(this.lockKey),
715-
RedisLockRegistry.this.clientId, unLockChannelKey));
715+
RedisLockRegistry.this.clientId, unLockChannelKeyToUse));
716716
}
717717

718718
private boolean subscribeLock(long time) throws ExecutionException, InterruptedException {

0 commit comments

Comments
 (0)