Run default DHT with table maintainer
This commit is contained in:
parent
c8ccd1c1b0
commit
e81c6569af
|
@ -404,13 +404,7 @@ func (cl *Client) NewAnacrolixDhtServer(conn net.PacketConn) (s *dht.Server, err
|
||||||
}
|
}
|
||||||
s, err = dht.NewServer(&cfg)
|
s, err = dht.NewServer(&cfg)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
go func() {
|
go s.TableMaintainer()
|
||||||
ts, err := s.Bootstrap()
|
|
||||||
if err != nil {
|
|
||||||
logger.Levelf(log.Warning, "error bootstrapping dht: %s", err)
|
|
||||||
}
|
|
||||||
logger.Levelf(log.Debug, "completed bootstrap: %+v", ts)
|
|
||||||
}()
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue