mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-20 14:39:36 +00:00
Improve null-safety of module/spring-boot-mongodb
See gh-46926
This commit is contained in:
+3
-2
@@ -117,8 +117,9 @@ public final class MongoReactiveAutoConfiguration {
|
||||
@Override
|
||||
public void customize(Builder builder) {
|
||||
if (!isCustomTransportConfiguration(this.settings.getIfAvailable())) {
|
||||
this.eventLoopGroup = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
|
||||
builder.transportSettings(TransportSettings.nettyBuilder().eventLoopGroup(this.eventLoopGroup).build());
|
||||
EventLoopGroup eventLoopGroup = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
|
||||
this.eventLoopGroup = eventLoopGroup;
|
||||
builder.transportSettings(TransportSettings.nettyBuilder().eventLoopGroup(eventLoopGroup).build());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user