Skip to content

tor-hsservice: Make the publisher update the `OnionServiceStatus`

gabi-250 requested to merge gabi-250/arti:onion-svc-status into main

This makes the publisher (and IPT manager, to some extent) report its status via StatusSender.

These are the state transitions I implemented in the publisher:

//!
//!
//!                 update_publish_status(UploadScheduled|AwaitingIpts)  +---------------+
//!                +---------------------------------------------------->| Bootstrapping |
//!                |                                                     +---------------+
//! +----------+   | update_publish_status(Idle)        +---------+             |
//! | Shutdown |-- +----------------------------------->| Running |----+        |
//! +----------+   |                                    +---------+    |        |
//!                |                                                   |        |
//!                |                                                   |        |
//!                | run_once() returns an error  +--------+           |        |
//!                +----------------------------->| Broken |<----------+--------+
//!                                               +--------+ run_once() returns an error
//! 

Part of #1083 (closed)

Merge request reports