Skip to content

Commit

Permalink
Add fix comment (alibaba#3329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruansheng8 committed Jun 9, 2023
1 parent 4636e6e commit 3205278
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ else if (type.equals(SentinelConstants.FALLBACK_TYPE)) {

private boolean checkSentinelProtect(RootBeanDefinition beanDefinition,
Class<?> beanType, String beanName) {
// Fixes #3329: Support custom RestTemplate
return beanName != null && RestTemplate.class.isAssignableFrom(beanType)
&& checkMethodMetadataReadingVisitor(beanDefinition);
}
Expand Down

0 comments on commit 3205278

Please sign in to comment.