Skip to content

Commit

Permalink
Sleep 5s before trying to pull again
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed May 23, 2024
1 parent 0d94c38 commit 7992fa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ostree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ use std::path;
use std::path::PathBuf;
use std::process::Command;
use std::str;
use std::time::Duration;
use std::{collections::HashMap, path::Path};
use std::{fs, io};
use tokio::time::sleep;
use tokio_process::CommandExt;
use walkdir::WalkDir;

Expand Down Expand Up @@ -974,6 +976,8 @@ pub fn pull_commit_async(
commit_clone,
e.to_string()
);
let sleep_duration = Duration::from_secs(5);
let _ = sleep(sleep_duration);

Check failure on line 980 in src/ostree.rs

View workflow job for this annotation

GitHub Actions / Clippy

non-binding `let` on a future
Ok(future::Loop::Continue(count - 1))
} else {
Err(e)
Expand Down

0 comments on commit 7992fa2

Please sign in to comment.