pub(crate) async fn report_status(
sender: Sender<BootstrapStatus>,
conn_status: ConnStatusEvents,
dir_status: impl Stream<Item = DirBootstrapStatus> + Send + Unpin,
skew_status: ClockSkewEvents,
)
Expand description
Task that runs forever, updating a client’s status via the provided
sender
.
TODO(nickm): Eventually this will use real stream of events to see when we are bootstrapped or not. For now, it just says that we’re not-ready until the given Receiver fires.
TODO(nickm): This should eventually close the stream when the client is dropped.