Skip to content

Commit 6220af1

Browse files
authored
Optimize plugin selector logic. (#651)
1 parent 5063985 commit 6220af1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Release Notes.
2525
* Bump Lombok to 1.18.30 to adopt JDK21 compiling.
2626
* Fix PostgreSQL Jdbc URL parsing exception.
2727
* Bump up grpc version.
28+
* Optimize plugin selector logic.
2829

2930
#### Documentation
3031
* Fix JDK requirement in the compiling docs.

apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginCfg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ void load(InputStream input) throws IOException {
5252
LOGGER.error(e, "Failed to format plugin({}) define.", pluginDefine);
5353
}
5454
}
55-
pluginClassList = pluginSelector.select(pluginClassList);
5655
} finally {
5756
input.close();
5857
}
5958
}
6059

6160
public List<PluginDefine> getPluginClassList() {
61+
pluginClassList = pluginSelector.select(pluginClassList);
6262
return pluginClassList;
6363
}
6464

0 commit comments

Comments
 (0)