Skip to content

Commit

Permalink
Log request serialization time
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Jul 2, 2024
1 parent 1645ffe commit 5cfbf59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disperser/batcher/grpc/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ func (c *dispatcher) sendChunks(ctx context.Context, blobs []*core.BlobMessage,
gc := node.NewDispersalClient(conn)
ctx, cancel := context.WithTimeout(ctx, c.Timeout)
defer cancel()
start := time.Now()
request, totalSize, err := GetStoreChunksRequest(blobs, batchHeader)
if err != nil {
return nil, err
}

c.logger.Debug("sending chunks to operator", "operator", op.Socket, "size", totalSize, "request message size", proto.Size(request), "num blobs", len(blobs), "request serialization time", time.Since(start))
opt := grpc.MaxCallSendMsgSize(60 * 1024 * 1024 * 1024)
c.logger.Debug("sending chunks to operator", "operator", op.Socket, "size", totalSize, "request message size", proto.Size(request))
reply, err := gc.StoreChunks(ctx, request, opt)

if err != nil {
Expand Down

0 comments on commit 5cfbf59

Please sign in to comment.