Skip to content

Commit 137c745

Browse files
authored
Merge pull request #941 from Gkirito/fix/grpc-msg-error
Enhance gRPC client setup with default call options
2 parents b961d2f + c49bb95 commit 137c745

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bootstrap/bootstrap.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,11 @@ func setupCrossSporkClient(config config.Config, logger zerolog.Logger) (*reques
514514
// if we provided access node previous spork hosts add them to the client
515515
pastSporkClients := make([]access.Client, len(config.AccessNodePreviousSporkHosts))
516516
for i, host := range config.AccessNodePreviousSporkHosts {
517-
grpcClient, err := grpc.NewClient(host)
517+
grpcClient, err := grpc.NewClient(host,
518+
grpc.WithGRPCDialOptions(
519+
grpcOpts.WithDefaultCallOptions(grpcOpts.MaxCallRecvMsgSize(DefaultMaxMessageSize)),
520+
),
521+
)
518522
if err != nil {
519523
return nil, fmt.Errorf("failed to create client connection for host: %s, with error: %w", host, err)
520524
}

0 commit comments

Comments
 (0)