Skip to content

Commit

Permalink
hot fix disperser retrieveBlob buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 1, 2024
1 parent 2ade913 commit 24d8c43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/clients/disperser_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 24d8c43

Please sign in to comment.