Skip to content

Commit

Permalink
review: Apply review fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
t2gran committed Oct 24, 2024
1 parent 685ea17 commit 4d3fff1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import graphql.schema.GraphQLNonNull;
import graphql.schema.GraphQLOutputType;
import graphql.schema.GraphQLScalarType;
import java.time.Duration;
import org.opentripplanner.apis.transmodel.TransmodelGraphQLPlanner;
import org.opentripplanner.apis.transmodel.model.DefaultRouteRequestType;
import org.opentripplanner.apis.transmodel.model.EnumTypes;
Expand Down Expand Up @@ -664,11 +663,4 @@ private static String enumValAsString(GraphQLEnumType enumType, Enum<?> otpVal)
.get()
.getName();
}

/**
* Format and return: "2440 minute (48h)"
*/
private static String durationInMinutesToString(Duration value) {
return "%d minutes (%s)".formatted(value.toMinutes(), value.toHours() + "h");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public TransitRoutingConfig(
.description(
"""
Use this parameter to set the total number of executable threads available across all searches.
Multiple searches can run in parallel - this parameter have no effect with regard to that. If 0,
Multiple searches can run in parallel - this parameter has no effect with regard to that. If 0,
no extra threads are started and the search is done in one thread.
"""
)
Expand Down
2 changes: 1 addition & 1 deletion doc/user/RouterConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ few percents.
Split a travel search in smaller jobs and run them in parallel to improve performance.

Use this parameter to set the total number of executable threads available across all searches.
Multiple searches can run in parallel - this parameter have no effect with regard to that. If 0,
Multiple searches can run in parallel - this parameter has no effect with regard to that. If 0,
no extra threads are started and the search is done in one thread.


Expand Down

0 comments on commit 4d3fff1

Please sign in to comment.