Skip to content

Commit dda618e

Browse files
authored
replace method used in muzzlecheck (#10229)
1 parent a847d94 commit dda618e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dd-java-agent/instrumentation/redisson/redisson-3.10.3/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ muzzle {
55
module = "redisson"
66
versions = "[3.10.3,)"
77
skipVersions += "0.9.0"
8-
skipVersions += "4.0.0" // FIXME: Temporary skip `4.0.0` as we need more time to support it.
98
assertInverse = true
109
}
1110
}

dd-java-agent/instrumentation/redisson/redisson-3.10.3/src/main/java/datadog/trace/instrumentation/redisson30/RedissonInstrumentation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.List;
1818
import java.util.concurrent.CompletionStage;
1919
import net.bytebuddy.asm.Advice;
20-
import org.redisson.api.RFuture;
20+
import org.redisson.api.RTransaction;
2121
import org.redisson.client.RedisConnection;
2222
import org.redisson.client.protocol.CommandData;
2323
import org.redisson.client.protocol.CommandsData;
@@ -86,9 +86,9 @@ public static void after(@Advice.Enter final AgentScope scope) {
8686
}
8787
}
8888

89-
public static void muzzleCheck(final RFuture<?> future) {
89+
public static void muzzleCheck(final RTransaction b) {
9090
// added on 3.10.3
91-
future.onComplete(null);
91+
b.getBuckets();
9292
}
9393
}
9494

0 commit comments

Comments
 (0)