From 652b1006c4bed33a658a94afb3c9c182c7298940 Mon Sep 17 00:00:00 2001 From: Demur Rumed Date: Thu, 16 Nov 2023 23:09:05 +0000 Subject: [PATCH] I thought second parameter was capacity.. --- flow/model/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/model/model.go b/flow/model/model.go index 11d85dca6f..0557af2774 100644 --- a/flow/model/model.go +++ b/flow/model/model.go @@ -395,7 +395,7 @@ schemaLoop: if len(tm.Exclude) == 0 { break } - added := make([]*protos.DeltaAddedColumn, len(delta.AddedColumns)) + added := make([]*protos.DeltaAddedColumn, 0, len(delta.AddedColumns)) for _, column := range delta.AddedColumns { if !slices.Contains(tm.Exclude, column.ColumnName) { added = append(added, column)