Skip to content

Commit

Permalink
Polishing #2395
Browse files Browse the repository at this point in the history
Original pull request: #2396
  • Loading branch information
mp911de committed Apr 24, 2023
1 parent 07ec489 commit 3737b12
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

import org.reactivestreams.Publisher;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import io.lettuce.core.*;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.reactive.RedisKeyReactiveCommands;
Expand All @@ -49,6 +47,8 @@
import io.lettuce.core.output.KeyStreamingChannel;
import io.lettuce.core.output.KeyValueStreamingChannel;
import io.lettuce.core.protocol.ConnectionIntent;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
* An advanced reactive and thread-safe API to a Redis Cluster connection.
Expand Down Expand Up @@ -333,7 +333,7 @@ public Mono<Long> mget(KeyValueStreamingChannel<K, V> channel, Iterable<K> keys)
publishers.add(super.mget(channel, entry.getValue()));
}

return Flux.merge(publishers).reduce((accu, next) -> accu + next);
return Flux.merge(publishers).reduce(Long::sum);
}

@Override
Expand Down

0 comments on commit 3737b12

Please sign in to comment.