From b6ec7327efe44c4826bfe734894691d3c5647010 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 28 Nov 2023 15:14:27 -0300 Subject: [PATCH] easyjson on filter.String() --- filter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filter.go b/filter.go index c2c07db..b375032 100644 --- a/filter.go +++ b/filter.go @@ -3,6 +3,7 @@ package nostr import ( "encoding/json" + "github.com/mailru/easyjson" "golang.org/x/exp/slices" ) @@ -36,7 +37,7 @@ func (eff Filters) Match(event *Event) bool { } func (ef Filter) String() string { - j, _ := json.Marshal(ef) + j, _ := easyjson.Marshal(ef) return string(j) }