Skip to content

Commit

Permalink
Merge pull request #1810 from ikonic89/1447-deffer-connection-creation
Browse files Browse the repository at this point in the history
R2DBC - Defer connection creation
  • Loading branch information
chernser authored Sep 6, 2024
2 parents 62c2554 + 13cb04f commit f3a4ab8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ClickHouseConnectionFactory implements ConnectionFactory {

@Override
public Mono<? extends Connection> create() {
return Mono.just(new ClickHouseConnection(nodes));
return Mono.defer(() -> Mono.just(new ClickHouseConnection(nodes)));
}

@Override
Expand Down

0 comments on commit f3a4ab8

Please sign in to comment.