Skip to content
Unverified Commit fbc3a5b1 authored by Max Inden's avatar Max Inden
Browse files

core/authority-discovery: Ensure being woken up on next interval tick

Authority discovery implements the future trait. Polling this future
always returns NotReady. The future uses Tokios timer crate to become
proactive periodically, e.g. advertising its own external addresses.

This commit ensures that the underlying Tokio task is always registered
at the Tokio Reactor to be woken up on the next interval tick. This is
achieved by making sure `interval.poll` returns `NotReady` at least
once within each `AuthorityDiscovery.poll` execution.
parent ed294de2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment