Skip to content

Commit

Permalink
chore: enable retry with max attempts 3 for momento local grpc config
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Jan 23, 2025
1 parent 1d2f8f5 commit 19744f5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public static void applyGrpcConfigurationToChannelBuilder(
channelBuilder.disableRetry();
} else {
channelBuilder.usePlaintext();
channelBuilder.enableRetry();
channelBuilder.maxRetryAttempts(3);
}

grpcConfig.getMaxReceivedMessageSize().ifPresent(channelBuilder::maxInboundMessageSize);
Expand Down

0 comments on commit 19744f5

Please sign in to comment.