Skip to content

Commit 8a3fe99

Browse files
committed
add capacity prealloc
1 parent 2b52746 commit 8a3fe99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chains/solana/proto_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ func ConvertValueComparatorsToProto(comparators []solprimitives.IndexedValueComp
14191419
return nil
14201420
}
14211421

1422-
out := make([]*IndexedValueComparator, 0)
1422+
out := make([]*IndexedValueComparator, 0, len(comparators))
14231423
for _, c := range comparators {
14241424
out = append(out, &IndexedValueComparator{
14251425
Value: c.Value,

0 commit comments

Comments
 (0)