Run default DHT with table maintainer

This commit is contained in:
Matt Joiner 2022-09-23 23:29:19 +10:00
parent c8ccd1c1b0
commit e81c6569af
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 1 additions and 7 deletions

View File

@ -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
} }