mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 19:37:46 +08:00
kubo-as-a-library: use `Bootstrap()` instead of raw `Swarm().Connect()` to fix race condition between swarm connection and bitswap peer discovery. `Bootstrap()` properly integrates peers into the routing system, ensuring bitswap learns about connected peers synchronously. GetClosestPeers: simplify retry logic using `EventuallyWithT` with 10-minute timeout. tests all 4 routing types (`auto`, `autoclient`, `dht`, `dhtclient`) against real bootstrap peers with patient polling. |
||
|---|---|---|
| .. | ||
| example-folder | ||
| kubo-as-a-library | ||
| go-ipfs-as-a-library | ||