Upgrade to MongoDB 5.0

See gh-39989
This commit is contained in:
Christoph Strobl
2024-03-15 14:29:06 +01:00
committed by Andy Wilkinson
parent 3699bcfb87
commit 35bc0f9f21
3 changed files with 2 additions and 5 deletions

View File

@@ -129,10 +129,8 @@ public class MongoReactiveAutoConfiguration {
}
}
@SuppressWarnings("deprecation")
private boolean isCustomTransportConfiguration(MongoClientSettings settings) {
return settings != null
&& (settings.getTransportSettings() != null || settings.getStreamFactoryFactory() != null);
return settings != null && settings.getTransportSettings() != null;
}
}

View File

@@ -230,7 +230,6 @@ class MongoReactiveAutoConfigurationTests {
assertThat(settings.getApplicationName()).isEqualTo("custom-transport-settings");
assertThat(settings.getTransportSettings())
.isSameAs(SimpleTransportSettingsCustomizerConfig.transportSettings);
assertThat(settings.getStreamFactoryFactory()).isNull();
});
}