Fix typo and make blocks message more informative (#437)

The message really doesn't tell me much as a user, since I never touched update_period to begin with:

```
Aug 06 09:43:07.287 [WARN] [petals.server.server.run:701] Declaring blocs to DHT takes more than --update_period, consider increasing it
```

Made it better and more informative.
pull/440/head
Vadim Peretokin 9 months ago committed by GitHub
parent a1f7791d5e
commit d0b5af34cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -698,7 +698,9 @@ class ModuleAnnouncerThread(threading.Thread):
delay = self.update_period - (time.perf_counter() - start_time)
if delay < 0:
logger.warning("Declaring blocs to DHT takes more than --update_period, consider increasing it")
logger.warning(
f"Declaring blocks to DHT takes more than --update_period, consider increasing it (currently {self.update_period})"
)
self.trigger.wait(max(delay, 0))
self.trigger.clear()

Loading…
Cancel
Save