From 98ebe802bcf996cfafa69ec158f795bd070d816f Mon Sep 17 00:00:00 2001 From: hectorhammett Date: Tue, 10 Dec 2024 01:23:28 +0000 Subject: [PATCH] Add the retryAttempt to the grpc-fallback transport --- src/Transport/GrpcFallbackTransport.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Transport/GrpcFallbackTransport.php b/src/Transport/GrpcFallbackTransport.php index 68d7f1195..7b2e417be 100644 --- a/src/Transport/GrpcFallbackTransport.php +++ b/src/Transport/GrpcFallbackTransport.php @@ -179,6 +179,10 @@ private function getCallOptions(array $options) $callOptions['timeout'] = $options['timeoutMillis'] / 1000; } + if (isset($options['retryAttempt'])) { + $callOptions['retryAttempt'] = $options['retryAttempt']; + } + if (isset($options['requestId'])) { $callOptions['requestId'] = $options['requestId']; }