refactoring

pull/6222/head
Nikita Koksharov 5 months ago
parent 231359fb56
commit 1a440692ca

@ -651,7 +651,7 @@ public abstract class RedissonObject implements RObject {
}
protected final RFuture<Integer> addTrackingListenerAsync(TrackingListener listener) {
if (getServiceManager().getCfg().getProtocol() != Protocol.RESP3) {
if (!getServiceManager().isResp3()) {
throw new IllegalStateException("`protocol` config setting should be set to RESP3 value");
}

Loading…
Cancel
Save