Skip to content

Commit

Permalink
Also rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed Aug 8, 2024
1 parent 247d7c7 commit d52f0d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ boolean allowedExecutors(Thread blockedThread, Thread completingThread) {
// this should only be used to validate thread interactions, like not waiting for a future completed on the same
// executor, hence calling it with the same thread indicates a bug in the assertion using this.
assert blockedThread != completingThread : "only call this for different threads";
String thread1Name = EsExecutors.executorName(blockedThread);
String thread2Name = EsExecutors.executorName(completingThread);
return thread1Name == null || thread2Name == null || thread1Name.equals(thread2Name) == false;
String blockedThreadName = EsExecutors.executorName(blockedThread);
String completingThreadName = EsExecutors.executorName(completingThread);
return blockedThreadName == null || completingThreadName == null || blockedThreadName.equals(completingThreadName) == false;
}
}

0 comments on commit d52f0d3

Please sign in to comment.