RedissonLock channel group changed

pull/6/head
Nikita
parent 91604158d9
commit 7cdeeb4f80

@ -105,7 +105,6 @@ public class RedissonLock extends RedissonObject implements RLock {
private final ConnectionManager connectionManager; private final ConnectionManager connectionManager;
private final UUID id; private final UUID id;
private final String groupName = "redisson__lock__";
private static final Integer unlockMessage = 0; private static final Integer unlockMessage = 0;
@ -165,11 +164,11 @@ public class RedissonLock extends RedissonObject implements RLock {
} }
private String getKeyName() { private String getKeyName() {
return groupName + getName(); return "redisson__lock__" + getName();
} }
private String getChannelName() { private String getChannelName() {
return groupName + getName(); return "redisson__lock__channel__" + getName();
} }
@Override @Override

@ -12,7 +12,7 @@ import org.redisson.core.RLock;
public class RedissonLockTest extends BaseConcurrentTest { public class RedissonLockTest extends BaseConcurrentTest {
Redisson redisson = Redisson.create(); Redisson redisson;
@Before @Before
public void before() { public void before() {

Loading…
Cancel
Save