Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhashinee committed Jan 8, 2025
1 parent 5af234c commit d5fb07a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public MongoClient createNewMongo(MongoClientSettings mongoClientSettings) throw
@Override
public boolean isActive() {
try {
// TODO: Need to check the connection availability properly.
MongoClient mongo = this.createNewMongo(this.mongoClientSettings);
return mongo != null;
} catch (Exception e) {
Expand All @@ -108,7 +107,8 @@ public ODataDataHandler createODataHandler() {
}

private MongoClientSettings extractMongoOptions(Map<String, String> properties, String writeConcern,
String readPref, List<ServerAddress> serverAddresses, MongoCredential mongoCredentials) {
String readPref, List<ServerAddress> serverAddresses,
MongoCredential mongoCredentials) {
MongoClientSettings.Builder settingsBuilder = MongoClientSettings.builder();
String connectionsPerHost = properties.get(DBConstants.MongoDB.CONNECTIONS_PER_HOST);
if (!DBUtils.isEmptyString(connectionsPerHost)) {
Expand Down
5 changes: 1 addition & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1809,10 +1809,7 @@
<carbon.registry.imp.pkg.version>0.0.0</carbon.registry.imp.pkg.version> <!-- todo remove this and use {carbon.kernel.imp.pkg.version} after registry bundles are corrected to export correct versions-->

<mongodb-driver-sync.orbit.version>4.9.1</mongodb-driver-sync.orbit.version>
<mongodb-driver-sync.orbit.imp.pkg.version>[4.0.0,6.0.0)</mongodb-driver-sync.orbit.imp.pkg.version> <!--todo change this to appropriate version range ([2.11.4.wso2v1,2.12.0)) after osgi bundle is corrected - rajith-->

<!-- <jongo.orbit.version>1.4.0.wso2v1</jongo.orbit.version>-->
<!-- <jongo.orbit.imp.pkg.version>[1.4,1.5)</jongo.orbit.imp.pkg.version>-->
<mongodb-driver-sync.orbit.imp.pkg.version>[4.0.0,6.0.0)</mongodb-driver-sync.orbit.imp.pkg.version>

<dataservices.version>4.4.107</dataservices.version>
<dataservices.imp.pkg.version>[4.3.0,5.0.0)</dataservices.imp.pkg.version>
Expand Down

0 comments on commit d5fb07a

Please sign in to comment.