Skip to content

Commit 194aea8

Browse files
authored
core: fix the backoff range to [0.8, 1.2] as per the A6 redefinition
1 parent e636df5 commit 194aea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/io/grpc/internal/RetriableStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public void run() {
853853

854854
public static long intervalWithJitter(long intervalNanos) {
855855
double inverseJitterFactor = isExperimentalRetryJitterEnabled
856-
? 0.8 * random.nextDouble() + 0.4 : random.nextDouble();
856+
? 0.4 * random.nextDouble() + 0.8 : random.nextDouble();
857857
return (long) (intervalNanos * inverseJitterFactor);
858858
}
859859

0 commit comments

Comments
 (0)