Login Delay

This commit is contained in:
Neshura 2025-06-14 20:52:05 +02:00
parent 204d413779
commit 42aff098bd
Signed by: Neshura
GPG key ID: 4E2D47B1374C297D

View file

@ -81,7 +81,10 @@ impl Bot {
loop {
let mut lemmy = match Lemmy::new(&self.shared_config).await {
Ok(data) => data,
Err(_) => continue,
Err(_) => {
sleep(Duration::seconds(10).to_std().unwrap()).await;
continue;
},
};
lemmy.get_communities().await;