mirror of
https://github.com/syncthing/syncthing.git
synced 2026-12-04 07:42:37 -08:00
5 files changed
+62
-34
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user