Skip to content

Commit

Permalink
chore: add logging into DHT
Browse files Browse the repository at this point in the history
Signed-off-by: mudler <mudler@localai.io>
  • Loading branch information
mudler committed Aug 26, 2024
1 parent e5891f2 commit d98ca25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/discovery/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ func (d *DHT) Run(c log.StandardLogger, ctx context.Context, host host.Host) err
connect := func() {
d.bootstrapPeers(c, ctx, host)
if d.latestRendezvous != "" {
c.Debugf("Announcing with old rendezvous: %s", d.latestRendezvous)
d.announceAndConnect(c, ctx, kademliaDHT, host, d.latestRendezvous)
}

rv := d.Rendezvous()
c.Debugf("Announcing with current rendezvous: %s", d.latestRendezvous)
d.announceAndConnect(c, ctx, kademliaDHT, host, rv)
}

Expand Down

0 comments on commit d98ca25

Please sign in to comment.