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:
2
relay.go
2
relay.go
@@ -307,6 +307,8 @@ func (r *Relay) Connect(ctx context.Context) error {
|
|||||||
case *OKEnvelope:
|
case *OKEnvelope:
|
||||||
if okCallback, exist := r.okCallbacks.Load(env.EventID); exist {
|
if okCallback, exist := r.okCallbacks.Load(env.EventID); exist {
|
||||||
okCallback(env.OK, env.Reason)
|
okCallback(env.OK, env.Reason)
|
||||||
|
} else {
|
||||||
|
InfoLogger.Printf("{%s} got an unexpected OK message for event %s", r.URL, env.EventID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user