Skip to content

Commit

Permalink
Get from transportService if null
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jul 26, 2024
1 parent 39a7a0b commit 7313e5f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ protected TransportReplicationAction(
this.threadPool = threadPool;
if (threadPool != null) {
this.tcWrapper = InternalThreadContextWrapper.from(threadPool.getThreadContext());
} else {
this.tcWrapper = InternalThreadContextWrapper.from(transportSeervice.threadPool.getThreadContext());
}
this.transportService = transportService;
this.clusterService = clusterService;
Expand Down

0 comments on commit 7313e5f

Please sign in to comment.