Skip to content

Commit

Permalink
fix FluxWorkers
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli5288 committed Mar 4, 2021
1 parent 5621a0b commit 7491ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/mengcraft/simpleorm/FluxWorkers.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Executor of() {

public Executor of(String ns) {
cursor++;
return workers.get(ns.hashCode() % size);
return workers.get((ns.hashCode() & Integer.MAX_VALUE) % size);
}

@Override
Expand Down

0 comments on commit 7491ac2

Please sign in to comment.