]> Untitled Git - lemmy.git/blobdiff - crates/utils/src/settings/structs.rs
Remove `actix_rt` & use standard tokio spawn (#3158)
[lemmy.git] / crates / utils / src / settings / structs.rs
index 6e200b224dcac4514f36a5c486081caab7b51583..5d0e642f6a2a55787ebfe7c34e2b5a20c67f8207 100644 (file)
@@ -39,6 +39,12 @@ pub struct Settings {
   #[default(None)]
   #[doku(skip)]
   pub opentelemetry_url: Option<Url>,
+  /// The number of activitypub federation workers that can be in-flight concurrently
+  #[default(0)]
+  pub worker_count: usize,
+  /// The number of activitypub federation retry workers that can be in-flight concurrently
+  #[default(0)]
+  pub retry_count: usize,
 }
 
 #[derive(Debug, Deserialize, Serialize, Clone, SmartDefault, Document)]