Skip to content

Commit

Permalink
修复loader.getResources无法读取资源的问题 (#1066)
Browse files Browse the repository at this point in the history
Co-authored-by: jiansong <1174332406@qq.com>
  • Loading branch information
SABERYJS and jiansong authored Jan 11, 2024
1 parent 5a4d234 commit 95a45cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class JRaftServiceLoader<S> implements Iterable<S> {
private LazyIterator lookupIterator;

public static <S> JRaftServiceLoader<S> load(final Class<S> service) {
return JRaftServiceLoader.load(service, Thread.currentThread().getContextClassLoader());
return JRaftServiceLoader.load(service, JRaftServiceLoader.class.getClassLoader());
}

public static <S> JRaftServiceLoader<S> load(final Class<S> service, final ClassLoader loader) {
Expand Down

0 comments on commit 95a45cd

Please sign in to comment.