mirror of
https://github.com/logos-messaging/go-libp2p-rendezvous.git
synced 2026-01-04 05:43:06 +00:00
client: add TODO for robust discovery error recovery
This commit is contained in:
parent
e530204107
commit
aa7f9daaa8
@ -215,6 +215,9 @@ func discoverAsync(ctx context.Context, ns string, s inet.Stream, ch chan Regist
|
||||
for {
|
||||
regs, cookie, err = discoverQuery(ns, batch, cookie, r, w)
|
||||
if err != nil {
|
||||
// TODO robust error recovery
|
||||
// - handle closed streams with backoff + new stream, preserving the cookie
|
||||
// - handle E_INVALID_COOKIE errors in that case to restart the discovery
|
||||
log.Errorf("Error in discovery [%s]: %s", ns, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user