Skip to content

Commit

Permalink
[fix] fix CodeGeneratorImpl load fail by spi(DataLinkDC#3354)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaorenyi committed Apr 3, 2024
1 parent 66ae4f2 commit ff61195
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static MetricsContextHolder getInstances() {

public void sendAsync(String key, MetricsVO o) {
CompletableFuture.runAsync(() -> {
Thread.currentThread().setContextClassLoader(MetricsContextHolder.class.getClassLoader());
metricsVOS.add(o);
long duration = System.currentTimeMillis() - lastDumpTime;
synchronized (metricsVOS) {
Expand Down

0 comments on commit ff61195

Please sign in to comment.