mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-10 09:41:37 +02:00
add some basic sdk tests, fix saving hints (normalize urls), checkduplicates arg order, kvdb stuff and other things.
This commit is contained in:
2
relay.go
2
relay.go
@ -226,7 +226,7 @@ func (r *Relay) ConnectWithTLS(ctx context.Context, tlsConfig *tls.Config) error
|
||||
subid := extractSubID(message)
|
||||
subscription, ok := r.Subscriptions.Load(subIdToSerial(subid))
|
||||
if ok && subscription.checkDuplicate != nil {
|
||||
if !subscription.checkDuplicate(extractEventID(message[10+len(subid):]), r.URL) {
|
||||
if subscription.checkDuplicate(extractEventID(message[10+len(subid):]), r.URL) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user