mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-28 06:41:53 +02:00
easyjson on filter.String()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user