mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-04-02 08:58:06 +02:00
add infolog for when a relay sends an unexpected OK message.
this can be indicative of either us or the relay miscalculating the event id.
This commit is contained in:
parent
fda3bd2acb
commit
93b43ed426
2
relay.go
2
relay.go
@ -307,6 +307,8 @@ func (r *Relay) Connect(ctx context.Context) error {
|
||||
case *OKEnvelope:
|
||||
if okCallback, exist := r.okCallbacks.Load(env.EventID); exist {
|
||||
okCallback(env.OK, env.Reason)
|
||||
} else {
|
||||
InfoLogger.Printf("{%s} got an unexpected OK message for event %s", r.URL, env.EventID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user