Skip to content

Commit d1a8aca

Browse files
fix: reprovides warning
1 parent b339490 commit d1a8aca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/node/provider.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func ProviderSys(reprovideInterval time.Duration, acceleratedDHTClient bool) fx.
2626
provider.ReproviderInterval(reprovideInterval),
2727
provider.KeyProvider(keyProvider),
2828
}
29-
if !acceleratedDHTClient {
29+
if !acceleratedDHTClient && reprovideInterval > 0 {
3030
// The estimation kinda suck if you are running with accelerated DHT client,
3131
// given this message is just trying to push people to use the acceleratedDHTClient
3232
// let's not report on through if it's in use
@@ -68,7 +68,7 @@ func ProviderSys(reprovideInterval time.Duration, acceleratedDHTClient bool) fx.
6868
🔔🔔🔔 YOU MAY BE FALLING BEHIND DHT REPROVIDES! 🔔🔔🔔
6969
7070
⚠️ 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.
7272
We observed that you recently provided %d keys at an average rate of %v per key.
7373
7474
🕑 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
9797
🔔🔔🔔 YOU ARE FALLING BEHIND DHT REPROVIDES! 🔔🔔🔔
9898
9999
⚠️ 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.
101101
We observed that you recently provided %d keys at an average rate of %v per key.
102102
103103
💾 Your total CID count is ~%d which would total at %v reprovide process.

0 commit comments

Comments
 (0)