Skip to content

Commit

Permalink
fix: do not scan the whole classpath (#9970)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbru committed Jun 19, 2023
1 parent 90aefe9 commit d0ffb49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ private void loadFunctions(final ClassLoader loader, final Optional<Path> path)
private ClassGraph.ClasspathElementFilter ksqlEngineFilter(final ClassLoader loader) {
// if we are loading from the parent classloader then restrict the name space to only
// jars/dirs containing "ksql-engine". This is so we don't end up scanning every jar
//return name -> parentClassLoader != loader || name.contains("ksqldb-engine");
return name -> true;
return name -> parentClassLoader != loader || name.contains("ksqldb-rest-app")
|| name.contains("ksqldb-engine");
}

public static UserFunctionLoader newInstance(
Expand Down

0 comments on commit d0ffb49

Please sign in to comment.