Skip to content

Commit

Permalink
bug: fix slice init length (#767)
Browse files Browse the repository at this point in the history
Signed-off-by: jingchanglu <[email protected]>
  • Loading branch information
jingchanglu authored Sep 26, 2024
1 parent 1649a25 commit 35d28c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/batcher/grpc/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 35d28c1

Please sign in to comment.