Skip to content

Commit

Permalink
reduce MaxRecvMsgSize for v2 node endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim committed Jan 16, 2025
1 parent 5492fe3 commit 31e2de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/grpc/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func RunServers(serverV1 *Server, serverV2 *ServerV2, config *node.Config, logge
logger.Fatalf("Could not start tcp listener: %v", err)
}

opt := grpc.MaxRecvMsgSize(1024 * 1024 * 300) // 300 MiB
opt := grpc.MaxRecvMsgSize(1024 * 1024) // 1 MiB
gs := grpc.NewServer(opt, serverV2.metrics.GetGRPCServerOption())

// Register reflection service on gRPC server
Expand Down

0 comments on commit 31e2de3

Please sign in to comment.