From 2c5cfeadabad121c49a3a2d1df721f68b473e1dc Mon Sep 17 00:00:00 2001 From: RikaCelery <94585272+RikaCelery@users.noreply.github.com> Date: Sun, 13 Oct 2024 17:27:35 +0800 Subject: [PATCH] optimize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> --- pattern.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pattern.go b/pattern.go index 8f0b75e..e0e0074 100644 --- a/pattern.go +++ b/pattern.go @@ -200,7 +200,7 @@ func patternMatch(ctx *Ctx, pattern Pattern, msgs []message.Segment) bool { return false } if _, ok := ctx.State[KeyPattern]; !ok { - ctx.State[KeyPattern] = make([]*PatternParsed, 0, 1) + ctx.State[KeyPattern] = make([]*PatternParsed, 0, 4) } i := 0 j := 0