mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Apply customize() to createCredentialNetworkMongoClient()"
Closes gh-11376
This commit is contained in:
parent
90369996a9
commit
c709ff8e3b
@ -95,11 +95,6 @@ public class ReactiveMongoClientFactory {
|
||||
return createMongoClient(builder);
|
||||
}
|
||||
|
||||
private MongoClient createMongoClient(Builder builder) {
|
||||
customize(builder);
|
||||
return MongoClients.create(builder.build());
|
||||
}
|
||||
|
||||
private MongoClient createNetworkMongoClient(MongoClientSettings settings) {
|
||||
if (hasCustomAddress() || hasCustomCredentials()) {
|
||||
return createCredentialNetworkMongoClient(settings);
|
||||
@ -138,6 +133,11 @@ public class ReactiveMongoClientFactory {
|
||||
return (value == null ? defaultValue : value);
|
||||
}
|
||||
|
||||
private MongoClient createMongoClient(Builder builder) {
|
||||
customize(builder);
|
||||
return MongoClients.create(builder.build());
|
||||
}
|
||||
|
||||
private Builder createBuilder(MongoClientSettings settings,
|
||||
ConnectionString connection) {
|
||||
Builder builder = builder(settings);
|
||||
|
Loading…
Reference in New Issue
Block a user