Unverified Commit d4e8a5ef authored by sgsdehen's avatar sgsdehen Committed by GitHub

[Fix-3354][dinky-admin] Fix CodeGeneratorImpl load fail by spi (#3355)

Signed-off-by: 's avatarzhaorenyi <zhaorenyi@joyy.com>
parent 66ae4f2f
...@@ -55,6 +55,7 @@ public class MetricsContextHolder { ...@@ -55,6 +55,7 @@ public class MetricsContextHolder {
public void sendAsync(String key, MetricsVO o) { public void sendAsync(String key, MetricsVO o) {
CompletableFuture.runAsync(() -> { CompletableFuture.runAsync(() -> {
Thread.currentThread().setContextClassLoader(MetricsContextHolder.class.getClassLoader());
metricsVOS.add(o); metricsVOS.add(o);
long duration = System.currentTimeMillis() - lastDumpTime; long duration = System.currentTimeMillis() - lastDumpTime;
synchronized (metricsVOS) { synchronized (metricsVOS) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment