Skip to content

Commit

Permalink
Merge formatting issues + formatter using wrong configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tishun committed May 2, 2024
1 parent 8af7392 commit 6acfa37
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
4 changes: 1 addition & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -851,15 +851,13 @@
<directory>${project.build.testSourceDirectory}</directory>
<directory>${project.basedir}/src/main/templates</directory>
</directories>
<configFile>formatting.xml</configFile>
</configuration>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
<configuration>
<configFile>formatting.xml</configFile>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ public Flux<V> spop(K key, long count) {
public Mono<Long> spublish(K shardChannel, V message) {
return createMono(() -> commandBuilder.spublish(shardChannel, message));
}

@Override
public Mono<V> srandmember(K key) {
return createMono(() -> commandBuilder.srandmember(key));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public interface RedisClusterPubSubListener<K, V> {
* @param message Message.
* @since 7.0
*/
default void smessage(RedisClusterNode node, K shardChannel, V message){
default void smessage(RedisClusterNode node, K shardChannel, V message) {
message(node, shardChannel, message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ Command<K, V, Long> spublish(K shardChannel, V message) {
CommandArgs<K, V> args = new CommandArgs<>(codec).addKey(shardChannel).addValue(message);
return createCommand(SPUBLISH, new IntegerOutput<>(codec), args);
}

@SafeVarargs
final Command<K, V, V> ssubscribe(K... shardChannels) {
LettuceAssert.notEmpty(shardChannels, "Shard channels " + MUST_NOT_BE_EMPTY);

CommandArgs<K, V> args = new CommandArgs<>(codec).addKeys(shardChannels);
return createCommand(SSUBSCRIBE, new PubSubOutput<>(codec), args);
}

@SafeVarargs
final Command<K, V, V> subscribe(K... channels) {
LettuceAssert.notEmpty(channels, "Channels " + MUST_NOT_BE_EMPTY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void punsubscribed(K pattern, long count) {
}

@Override
public void smessage(K shardChannel, V message) {
public void smessage(K shardChannel, V message) {
// empty adapter method
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,8 @@ void shouldPropagateCommandTimeoutToCommandListener() throws InterruptedExceptio
assertThat(commandListener.succeeded).isEmpty();

Wait.untilTrue(() -> commandListener.failed.size() == 1);
Wait.untilTrue(() ->
commandListener.failed.stream().anyMatch(command ->
command.getCommand().getType().equals(CommandType.BLPOP)));

Wait.untilTrue(() -> commandListener.failed.stream()
.anyMatch(command -> command.getCommand().getType().equals(CommandType.BLPOP)));

FastShutdown.shutdown(client);
}
Expand Down

0 comments on commit 6acfa37

Please sign in to comment.