Skip to content

Commit

Permalink
fix getReactiveConnection() (#43)
Browse files Browse the repository at this point in the history
RedisConnectionFactory cant castcannot be cask to ReactiveRedisConnection
  • Loading branch information
duoyuli authored and malafeev committed Sep 16, 2019
1 parent 2d514e9 commit d4af725
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public DataAccessException translateExceptionIfPossible(RuntimeException e) {
@Override
public ReactiveRedisConnection getReactiveConnection() {
if (delegate instanceof ReactiveRedisConnectionFactory) {
return new TracingReactiveRedisConnection((ReactiveRedisConnection) delegate,
return new TracingReactiveRedisConnection(((ReactiveRedisConnectionFactory) delegate).getReactiveConnection(),
tracingConfiguration);
}
// TODO: shouldn't we throw an exception?
Expand Down

0 comments on commit d4af725

Please sign in to comment.