tor-hsservice: Descriptor publisher improvements
This MR fills out some more descriptor publisher TODOs. Notably, the publisher now
- no longer keeps a partially built
Descriptor
around (the intermediateDescriptor
struct isn't actually needed. In fact, it would've been very inconvenient to keep it, because we now read the IPTs just before building the descriptor, rather than ahead of time) - knows when to call
upload_all
(which uploads the descriptor to all HSDirs that need it). Previously,upload_all
was only ever called by the code that reschedules rate-limited uploads - follows the instructions of the IPT manager and stops publishing if
borrow_for_publish
returnsNone
- has an implementation for
handle_svc_config_change