From fbaf21c098056a7fd745a54620b259e2ff0d863e Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 23 Apr 2018 13:38:34 +0300 Subject: [PATCH] client: add TODO comment for adaptive backoff --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index ca19cf1..8a42219 100644 --- a/client.go +++ b/client.go @@ -204,6 +204,7 @@ func discoverAsync(ctx context.Context, ns string, s inet.Stream, ch chan Regist } if len(regs) < batch { + // TODO adaptive backoff for heavily loaded rendezvous points select { case <-time.After(2 * time.Minute): case <-ctx.Done():