Skip to content

Commit

Permalink
Adding default to Neptune port (8182)
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzin1 committed Jan 11, 2024
1 parent da3f8c4 commit 01d7997
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ private static NeptuneConnection createConnection(java.util.Map<String, String>
switch(graphType){
case PROPERTYGRAPH:
return new NeptuneGremlinConnection(configOptions.get(Constants.CFG_ENDPOINT),
configOptions.get(Constants.CFG_PORT), Boolean.parseBoolean(configOptions.getOrDefault(Constants.CFG_IAM, "false")),
configOptions.getOrDefault(Constants.CFG_PORT, "8182"), Boolean.parseBoolean(configOptions.getOrDefault(Constants.CFG_IAM, "false")),
configOptions.get(Constants.CFG_REGION));

case RDF:
return new NeptuneSparqlConnection(configOptions.get(Constants.CFG_ENDPOINT),
configOptions.get(Constants.CFG_PORT), Boolean.parseBoolean(configOptions.getOrDefault(Constants.CFG_IAM, "false")),
configOptions.getOrDefault(Constants.CFG_PORT, "8182"), Boolean.parseBoolean(configOptions.getOrDefault(Constants.CFG_IAM, "false")),
configOptions.get(Constants.CFG_REGION));
}
return null;
Expand Down

0 comments on commit 01d7997

Please sign in to comment.