Skip to content

Commit

Permalink
change limit to 5k
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin committed Jan 4, 2022
1 parent 3a88cc4 commit bc67d28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public String post(@Context GraphManager manager,
"The targets of request can't be null");
E.checkArgumentNotNull(request.step,
"The step of request can't be null");
E.checkArgument(request.depth > 0 && request.depth <= 10000,
"The depth of request must be in (0, 10000], " +
E.checkArgument(request.depth > 0 && request.depth <= 5000,
"The depth of request must be in (0, 5000], " +
"but got: %s", request.depth);

LOG.debug("Graph [{}] get paths from source vertices '{}', target " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public PathSet paths(Id sourceV, Directions sourceDir,
sourceDir == targetDir.opposite(),
"Source direction must equal to target direction" +
" or opposite to target direction");
E.checkArgument(depth > 0 && depth <= 10000,
"The depth must be in (0, 10000], but got: %s", depth);
E.checkArgument(depth > 0 && depth <= 5000,
"The depth must be in (0, 5000], but got: %s", depth);
checkDegree(degree);
checkCapacity(capacity);
checkLimit(limit);
Expand Down

0 comments on commit bc67d28

Please sign in to comment.