Commit 072e7d95 authored by Jeromy's avatar Jeromy

add in dag removal

parent 1024504a
...@@ -540,7 +540,11 @@ func (dht *IpfsDHT) PingRoutine(t time.Duration) { ...@@ -540,7 +540,11 @@ func (dht *IpfsDHT) PingRoutine(t time.Duration) {
func (dht *IpfsDHT) Bootstrap(ctx context.Context) { func (dht *IpfsDHT) Bootstrap(ctx context.Context) {
id := make([]byte, 16) id := make([]byte, 16)
rand.Read(id) rand.Read(id)
_, err := dht.FindPeer(ctx, peer.ID(id)) p, err := dht.FindPeer(ctx, peer.ID(id))
if err != nil {
log.Error("Bootstrap peer error: %s", err)
}
err = dht.dialer.DialPeer(p)
if err != nil { if err != nil {
log.Errorf("Bootstrap peer error: %s", err) log.Errorf("Bootstrap peer error: %s", err)
} }
......
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