renaming Equal -> FilterEqual

This commit is contained in:
fiatjaf
2022-01-02 09:08:05 -03:00
parent 629c9174eb
commit 3e20e6c7cc
3 changed files with 4 additions and 4 deletions

2
go.mod
View File

@@ -3,7 +3,7 @@ module github.com/fiatjaf/relayer
go 1.15
require (
github.com/fiatjaf/go-nostr v0.4.1
github.com/fiatjaf/go-nostr v0.4.2
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.4.2
github.com/jmoiron/sqlx v1.3.1

4
go.sum
View File

@@ -17,8 +17,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fiatjaf/bip340 v1.1.0 h1:W+CnUU3RyqgMKS2S9t/r2l3L4D+sSkRtU4la7MlVBR8=
github.com/fiatjaf/bip340 v1.1.0/go.mod h1:MxAz+5FQUTW4OT2gnCBC6Our486wmqf72ykZIrh7+is=
github.com/fiatjaf/go-nostr v0.4.1 h1:kYgdEFAojK0tuaYqt6FWs1uVw5QJJni6ShbQqfL3Gos=
github.com/fiatjaf/go-nostr v0.4.1/go.mod h1:Uw7NI2zQE2QYgcT5495pZguoHoYRIrmXvLRO0eXhOs0=
github.com/fiatjaf/go-nostr v0.4.2 h1:8aeep4O1eTXNHOTSeMThGYs5Fox1OcqeqOVflFo5tAY=
github.com/fiatjaf/go-nostr v0.4.2/go.mod h1:Uw7NI2zQE2QYgcT5495pZguoHoYRIrmXvLRO0eXhOs0=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=

View File

@@ -28,7 +28,7 @@ func GetListeningFilters() nostr.EventFilters {
for _, listenerfilter := range listener.filters {
for _, respfilter := range respfilters {
// check if this filter specifically is already added to respfilters
if nostr.Equal(listenerfilter, respfilter) {
if nostr.FilterEqual(listenerfilter, respfilter) {
goto nextconn
}
}