Initial impl of up/down ratelimits

This commit is contained in:
Igor Katson 2024-11-07 21:40:17 +00:00
parent 616498f500
commit 25b309867b
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
8 changed files with 121 additions and 6 deletions

View file

@ -480,6 +480,8 @@ async fn async_main(opts: Opts, cancel: CancellationToken) -> anyhow::Result<()>
cancellation_token: Some(cancel.clone()),
#[cfg(feature = "disable-upload")]
disable_upload: opts.disable_upload,
// TODO: expose
ratelimits: Default::default(),
};
let stats_printer = |session: Arc<Session>| async move {