Skip to content

Commit

Permalink
add blocking annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg authored and andrewazores committed Jun 24, 2024
1 parent 9bf820b commit 20bcc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/rules/RuleService.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void onStart(@Observes StartupEvent ev) {
Rule.<Rule>streamAll().filter(r -> r.enabled).forEach(this::applyRuleToMatchingTargets);
}

@ConsumeEvent(value = Target.TARGET_JVM_DISCOVERY)
@ConsumeEvent(value = Target.TARGET_JVM_DISCOVERY, blocking = true)
void onMessage(TargetDiscovery event) {
switch (event.kind()) {
case FOUND:
Expand Down

0 comments on commit 20bcc05

Please sign in to comment.