- To enable parameter flow control in Sentinel annotation support Signed-off-by: Eric Zhao <sczyh16@gmail.com>master
@@ -37,7 +37,7 @@ public @interface SentinelResource { | |||||
/** | /** | ||||
* @return name of the Sentinel resource | * @return name of the Sentinel resource | ||||
*/ | */ | ||||
String value() default "";; | |||||
String value() default ""; | |||||
/** | /** | ||||
* @return the entry type (inbound or outbound), outbound by default | * @return the entry type (inbound or outbound), outbound by default | ||||
@@ -53,7 +53,7 @@ public class SentinelResourceAspect extends AbstractSentinelAspectSupport { | |||||
EntryType entryType = annotation.entryType(); | EntryType entryType = annotation.entryType(); | ||||
Entry entry = null; | Entry entry = null; | ||||
try { | try { | ||||
entry = SphU.entry(resourceName, entryType); | |||||
entry = SphU.entry(resourceName, entryType, 1, pjp.getArgs()); | |||||
Object result = pjp.proceed(); | Object result = pjp.proceed(); | ||||
return result; | return result; | ||||
} catch (BlockException ex) { | } catch (BlockException ex) { | ||||