mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
delay around bootstrapping
This commit is contained in:
parent
760ae8dba6
commit
482743b6cc
@ -270,11 +270,13 @@ func main() {
|
||||
|
||||
bootstrapPeers := []peer.AddrInfo{nodeA.Peerstore.PeerInfo(nodeA.Identity)}
|
||||
|
||||
time.Sleep(5 * time.Second)
|
||||
fmt.Println("Bootstrapping nodeB to nodeA")
|
||||
if err := nodeB.Bootstrap(bootstrap.BootstrapConfigWithPeers(bootstrapPeers)); err != nil {
|
||||
panic(fmt.Errorf("failed to bootstrap nodeB: %s", err))
|
||||
}
|
||||
fmt.Println("Done bootstrapping nodeB")
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
exampleCIDStr := peerCidFile.RootCid().String()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user