Skip to content

Commit e5a920a

Browse files
committed
avoid dynamic wildcard for queries
1 parent faddef7 commit e5a920a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async/async-rabbit/src/main/java/org/reactivecommons/async/rabbit/HandlerResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void addEventListener(RegisteredEventListener<?> listener) {
7777

7878
void addQueryHandler(RegisteredQueryHandler<?, ?> handler) {
7979
if (handler.getPath().contains("*")) {
80-
log.warning("avoid * in dynamic handlers, make sure you have no conflicts with cached patterns");
80+
throw new RuntimeException("avoid * in dynamic handlers, make sure you have no conflicts with cached patterns");
8181
}
8282
queryHandlers.put(handler.getPath(), handler);
8383
}

0 commit comments

Comments
 (0)