Skip to content

Commit

Permalink
Fix flowId offset bug in EnvoySentinelRuleConverter
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Zhao <[email protected]>
  • Loading branch information
sczyh30 committed Nov 7, 2019
1 parent b66680b commit ff5c010
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static long generateFlowId(String key) {
return -1L;
}
// Add offset to avoid negative ID.
return Integer.MAX_VALUE + key.hashCode();
return (long) Integer.MAX_VALUE + key.hashCode();
}

public static String generateKey(String domain, EnvoyRlsRule.ResourceDescriptor descriptor) {
Expand Down

0 comments on commit ff5c010

Please sign in to comment.