You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/10/30 14:34:06 UTC

[GitHub] [incubator-hugegraph] zyxxoo commented on a diff in pull request #1996: fix: User-controlled data in numeric cast [#1987]

zyxxoo commented on code in PR #1996:
URL: https://github.com/apache/incubator-hugegraph/pull/1996#discussion_r1008875306


##########
hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/AdamicAdarAPI.java:
##########
@@ -67,7 +67,7 @@ public String get(@Context GraphManager manager,
                       @QueryParam("max_degree")
                       @DefaultValue(DEFAULT_MAX_DEGREE) long maxDegree,
                       @QueryParam("limit")
-                      @DefaultValue(DEFAULT_ELEMENTS_LIMIT) long limit) {
+                      @DefaultValue(DEFAULT_ELEMENTS_LIMIT) int limit) {

Review Comment:
   I have change all algorithms limit type long to int, and I have put a pr for hugegraph-client



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org