Skip to content

Commit 5854c29

Browse files
wangquanchnquan.wang
and
quan.wang
authored
fix: Redisson getBucket(String, Codec) bug fix (#604)
Co-authored-by: quan.wang <[email protected]>
1 parent ce9fdcb commit 5854c29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/RedissonInstrumentation.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
3131
import static net.bytebuddy.matcher.ElementMatchers.named;
3232
import static net.bytebuddy.matcher.ElementMatchers.takesArgument;
33+
import static net.bytebuddy.matcher.ElementMatchers.takesArguments;
3334
import static net.bytebuddy.matcher.ElementMatchers.takesNoArguments;
3435

3536
/**
@@ -57,7 +58,8 @@ public List<MethodInstrumentation> methodAdvices() {
5758
public static class GetBucketAdvice {
5859
public static MethodInstrumentation getMethodInstrumentation() {
5960
ElementMatcher.Junction<MethodDescription> matcher =
60-
isMethod().and(isPublic()).and(named("getBucket")).and(takesArgument(0, String.class));
61+
isMethod().and(isPublic()).and(named("getBucket")).and(takesArgument(0, String.class))
62+
.and(takesArguments(1));
6163

6264
String advice = GetBucketAdvice.class.getName();
6365

0 commit comments

Comments
 (0)