Skip to content

Commit 0532d18

Browse files
rozzajyemin
authored andcommitted
Revert driver metadata for netty
It doesn't catch programmatically set netty streamfactories. Also as StreamType is being removed in 4.0 along with NettyMongoClients.java JAVA-3131
1 parent 9a1b613 commit 0532d18

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

driver-async/src/main/com/mongodb/async/client/NettyMongoClients.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ static MongoClient create(final MongoClientSettings settings, @Nullable final Mo
3333
final EventLoopGroup eventLoopGroup = new NioEventLoopGroup();
3434
StreamFactory streamFactory = new NettyStreamFactory(settings.getSocketSettings(), settings.getSslSettings(), eventLoopGroup);
3535
StreamFactory heartbeatStreamFactory = new NettyStreamFactory(settings.getHeartbeatSocketSettings(), settings.getSslSettings(),
36-
eventLoopGroup);
37-
MongoDriverInformation.Builder builder = mongoDriverInformation == null ? MongoDriverInformation.builder()
38-
: MongoDriverInformation.builder(mongoDriverInformation);
39-
return MongoClients.createMongoClient(settings, builder.driverName("netty").build(), streamFactory, heartbeatStreamFactory,
36+
eventLoopGroup);
37+
return MongoClients.createMongoClient(settings, mongoDriverInformation, streamFactory, heartbeatStreamFactory,
4038
new Closeable() {
4139
@Override
4240
public void close() {

0 commit comments

Comments
 (0)