Commit 11649ed7 authored by Jeromy's avatar Jeromy

comment for future @jbenet and @whyrusleeping's to understand reasoning

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 9d3d61d3
......@@ -79,6 +79,8 @@ func connect(t *testing.T, ctx context.Context, a, b *IpfsDHT) {
t.Fatal(err)
}
// loop until connection notification has been received.
// under high load, this may not happen as immediately as we would like.
for a.routingTable.Find(b.self) == "" {
time.Sleep(time.Millisecond * 5)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment