From 0d8bd9d4b90057220baa990834f4d1246e6e8b01 Mon Sep 17 00:00:00 2001 From: jingchanglu Date: Thu, 19 Sep 2024 19:02:09 +0800 Subject: [PATCH] bug: fix slice init length Signed-off-by: jingchanglu --- disperser/batcher/grpc/dispatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disperser/batcher/grpc/dispatcher.go b/disperser/batcher/grpc/dispatcher.go index 6597492722..495dee377a 100644 --- a/disperser/batcher/grpc/dispatcher.go +++ b/disperser/batcher/grpc/dispatcher.go @@ -182,7 +182,7 @@ func (c *dispatcher) SendBlobsToOperator(ctx context.Context, blobs []*core.Enco } signaturesInBytes := reply.GetSignatures() - signatures := make([]*core.Signature, len(signaturesInBytes)) + signatures := make([]*core.Signature, 0, len(signaturesInBytes)) for _, sigBytes := range signaturesInBytes { sig := sigBytes.GetValue() if sig != nil {