Skip to content

tor-hsservice: Reimplement upload rate-limiting using TrackingNow.

gabi-250 requested to merge gabi-250/arti:publisher-rate-lim into main

This simplifies the publisher code in preparation for #1241 (closed)

This replaces the overly complicated task-based approach to rate-limiting with a simpler one, where the publisher has:

  • a separate RateLimited state that indicates it is rate-limited, and for how long
  • an additional arm in its run_once() select_biased!, which checks if the rate-limit has expired

Merge request reports