From 36146645708abd6c9d2cc100bd510b6de75588a6 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 1 Aug 2024 23:44:24 +0000 Subject: [PATCH] add disperser recv buffer --- api/clients/disperser_client.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/clients/disperser_client.go b/api/clients/disperser_client.go index 50eb03cbc4..ed412b200c 100644 --- a/api/clients/disperser_client.go +++ b/api/clients/disperser_client.go @@ -226,8 +226,11 @@ func (c *disperserClient) GetBlobStatus(ctx context.Context, requestID []byte) ( func (c *disperserClient) RetrieveBlob(ctx context.Context, batchHeaderHash []byte, blobIndex uint32) ([]byte, error) { addr := fmt.Sprintf("%v:%v", c.config.Hostname, c.config.Port) - dialOptions := c.getDialOptions() - conn, err := grpc.Dial(addr, dialOptions...) + + options := make([]grpc.DialOption, 0) + options = append(options, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024))) // 100MiB receive buffer + + conn, err := grpc.Dial(addr, options...) if err != nil { return nil, err }