@@ -42,8 +42,8 @@ class InternalStreamConnectionFactory implements InternalConnectionFactory {
42
42
private final MongoCredentialWithCache credential ;
43
43
44
44
InternalStreamConnectionFactory (final ClusterConnectionMode clusterConnectionMode ,
45
- final StreamFactory streamFactory ,
46
- @ Nullable final MongoCredentialWithCache credential ,
45
+ final StreamFactory streamFactory ,
46
+ @ Nullable final MongoCredentialWithCache credential ,
47
47
final ClientMetadata clientMetadata ,
48
48
final List <MongoCompressor > compressorList ,
49
49
final LoggerSettings loggerSettings , @ Nullable final CommandListener commandListener , @ Nullable final ServerApi serverApi ) {
@@ -52,8 +52,8 @@ class InternalStreamConnectionFactory implements InternalConnectionFactory {
52
52
}
53
53
54
54
InternalStreamConnectionFactory (final ClusterConnectionMode clusterConnectionMode , final boolean isMonitoringConnection ,
55
- final StreamFactory streamFactory ,
56
- @ Nullable final MongoCredentialWithCache credential ,
55
+ final StreamFactory streamFactory ,
56
+ @ Nullable final MongoCredentialWithCache credential ,
57
57
final ClientMetadata clientMetadata ,
58
58
final List <MongoCompressor > compressorList ,
59
59
final LoggerSettings loggerSettings , @ Nullable final CommandListener commandListener , @ Nullable final ServerApi serverApi ) {
@@ -72,7 +72,7 @@ class InternalStreamConnectionFactory implements InternalConnectionFactory {
72
72
public InternalConnection create (final ServerId serverId , final ConnectionGenerationSupplier connectionGenerationSupplier ) {
73
73
Authenticator authenticator = credential == null ? null : createAuthenticator (credential );
74
74
InternalStreamConnectionInitializer connectionInitializer = new InternalStreamConnectionInitializer (
75
- clusterConnectionMode , authenticator , clientMetadata .getClientMetadataBsonDocument (), compressorList , serverApi );
75
+ clusterConnectionMode , authenticator , clientMetadata .getBsonDocument (), compressorList , serverApi );
76
76
return new InternalStreamConnection (
77
77
clusterConnectionMode , authenticator ,
78
78
isMonitoringConnection , serverId , connectionGenerationSupplier ,
0 commit comments