mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-07 13:40:56 +02:00
easyjson on filter.String()
This commit is contained in:
@@ -3,6 +3,7 @@ package nostr
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
|
"github.com/mailru/easyjson"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -36,7 +37,7 @@ func (eff Filters) Match(event *Event) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ef Filter) String() string {
|
func (ef Filter) String() string {
|
||||||
j, _ := json.Marshal(ef)
|
j, _ := easyjson.Marshal(ef)
|
||||||
return string(j)
|
return string(j)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user