mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 17:22:21 +08:00
comment for future @jbenet and @whyrusleeping's to understand reasoning
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user