Optimize plugin selector logic. (#651)

This commit is contained in:
weixiang1862 2023-12-01 09:24:30 +08:00 committed by GitHub
parent 5063985516
commit 6220af1172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Release Notes.
* Bump Lombok to 1.18.30 to adopt JDK21 compiling.
* Fix PostgreSQL Jdbc URL parsing exception.
* Bump up grpc version.
* Optimize plugin selector logic.
#### Documentation
* Fix JDK requirement in the compiling docs.

View File

@ -52,13 +52,13 @@ public enum PluginCfg {
LOGGER.error(e, "Failed to format plugin({}) define.", pluginDefine);
}
}
pluginClassList = pluginSelector.select(pluginClassList);
} finally {
input.close();
}
}
public List<PluginDefine> getPluginClassList() {
pluginClassList = pluginSelector.select(pluginClassList);
return pluginClassList;
}