mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 20:16:07 +00:00
doc[net]: other hash algorithms can be customized to make the distribution more uniform
This commit is contained in:
1 parent
4d211f0a53
commit
5d8464562f
1 file changed
+1
@@ -126,6 +126,7 @@ public final class TaskBus {
|
||||
}
|
||||
|
||||
public static int calTaskExecutorHash(int taskExecutorHash) {
|
||||
// Other hash algorithms can be customized to make the distribution more uniform
|
||||
return Math.abs(taskExecutorHash) % EXECUTOR_SIZE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user