diff --git a/src/main/java/io/lettuce/core/pubsub/RedisPubSubReactiveCommandsImpl.java b/src/main/java/io/lettuce/core/pubsub/RedisPubSubReactiveCommandsImpl.java index 19e878f3f6..e13bb3ce69 100644 --- a/src/main/java/io/lettuce/core/pubsub/RedisPubSubReactiveCommandsImpl.java +++ b/src/main/java/io/lettuce/core/pubsub/RedisPubSubReactiveCommandsImpl.java @@ -161,7 +161,7 @@ public Mono> pubsubShardNumsub(K... shardChannels) { @Override public Mono spublish(K shardChannel, V message) { - return createMono(() -> commandBuilder.publish(shardChannel, message)); + return createMono(() -> commandBuilder.spublish(shardChannel, message)); } @Override