Signed-off-by: Jakob Borg <[email protected]>
This commit is contained in:
Jakob Borg committed 2026-11-29 11:13:00 +01:00
1 parent 9f5ea0a920
commit 7132c8fcdd
5 files changed
+62 -34

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ func (s *PeerToPeerDiscovery) Serve(ctx context.Context) error {
if err == nil {
published = addresses
// 20 - 35 minutes
next = time.Now().Add(dht.RecordLifetime/6 + rand.N(dht.RecordLifetime/8)) //nolint:gosec
next = time.Now().Add(dht.MaxRecordLifetime/6 + rand.N(dht.MaxRecordLifetime/8)) //nolint:gosec
} else {
next = time.Now().Add(announceErrorRetryInterval)
slog.Debug("Failed to announce", "error", err, "next", next)