Skip to content

Commit

Permalink
fix comment in FaultToleranceInterceptor.applyGuardFlow()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Nov 27, 2024
1 parent fb127f6 commit c3f421c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ private <V, T> T applyGuardFlow(FaultToleranceOperation operation, InvocationCon
String identifier = operation.getApplyGuard().value();
Instance<Guard> guardInstance = configuredGuard.select(Identifier.Literal.of(identifier));
Instance<TypedGuard<T>> typedGuardInstance = (Instance) configuredTypedGuard.select(Identifier.Literal.of(identifier));
// at least one of them should be resolvable, otherwise a deployment problem has occurred
// the check here is redundant, but we keep it just in case
// at least one of them should be resolvable, but it's possible to override the identifier
// using MP Config, so we better check again
if (!guardInstance.isResolvable() && !typedGuardInstance.isResolvable()) {
throw new FaultToleranceException("Can't resolve a bean of type " + Guard.class.getName()
+ " or " + TypedGuard.class.getName()
Expand Down

0 comments on commit c3f421c

Please sign in to comment.