fix: reprovides warning (#10761)
Guillaume Michel committed
Mar 25, 2025 at 15:48 UTC
1d9e3d6c4f10bb5937785cd9828e7beda3b8e2ae
1 file changed
+3
-3
core/node/provider.go
+3
-3
@@ -26,7 +26,7 @@ func ProviderSys(reprovideInterval time.Duration, acceleratedDHTClient bool) fx.
26
provider.ReproviderInterval(reprovideInterval),
27
provider.KeyProvider(keyProvider),
28
}
29
- if !acceleratedDHTClient {
29
+ if !acceleratedDHTClient && reprovideInterval > 0 {
30
// The estimation kinda suck if you are running with accelerated DHT client,
31
// given this message is just trying to push people to use the acceleratedDHTClient
32
// let's not report on through if it's in use
@@ -68,7 +68,7 @@ func ProviderSys(reprovideInterval time.Duration, acceleratedDHTClient bool) fx.
68
🔔🔔🔔 YOU MAY BE FALLING BEHIND DHT REPROVIDES! 🔔🔔🔔
69
70
⚠️ Your system might be struggling to keep up with DHT reprovides!
71
-This means your content could partially or completely inaccessible on the network.
71
+This means your content could be partially or completely inaccessible on the network.
72
We observed that you recently provided %d keys at an average rate of %v per key.
73
74
🕑 An attempt to estimate your blockstore size timed out after 5 minutes,
@@ -97,7 +97,7 @@ https://github.com/ipfs/kubo/blob/master/docs/config.md#routingaccelerateddhtcli
97
🔔🔔🔔 YOU ARE FALLING BEHIND DHT REPROVIDES! 🔔🔔🔔
98
99
⚠️ Your system is struggling to keep up with DHT reprovides!
100
-This means your content could partially or completely inaccessible on the network.
100
+This means your content could be partially or completely inaccessible on the network.
101
We observed that you recently provided %d keys at an average rate of %v per key.
102
103
💾 Your total CID count is ~%d which would total at %v reprovide process.