Skip to content

Commit

Permalink
Resolves alibaba#256: Support parameters in entry of Sentinel annotat…
Browse files Browse the repository at this point in the history
…ion support

- To enable parameter flow control in Sentinel annotation support

Signed-off-by: Eric Zhao <[email protected]>

(cherry picked from commit 09ba7f0)
  • Loading branch information
sczyh30 committed Dec 25, 2018
1 parent e2f92b4 commit 41db7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/**
* @return name of the Sentinel resource
*/
String value() default "";;
String value() default "";

/**
* @return the entry type (inbound or outbound), outbound by default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Object invokeResourceWithSentinel(ProceedingJoinPoint pjp) throws Throwab
EntryType entryType = annotation.entryType();
Entry entry = null;
try {
entry = SphU.entry(resourceName, entryType);
entry = SphU.entry(resourceName, entryType, 1, pjp.getArgs());
Object result = pjp.proceed();
return result;
} catch (BlockException ex) {
Expand Down

0 comments on commit 41db7db

Please sign in to comment.