1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

add sleep to keep alive loop of watch-store

This commit is contained in:
Shawn8901 2023-04-04 21:32:04 +02:00
parent 4d92e69fc1
commit d48e920f12

View file

@ -1,5 +1,6 @@
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::{thread, time};
use anyhow::{anyhow, Result};
use clap::Parser;
@ -114,7 +115,9 @@ pub async fn run(opts: Opts) -> Result<()> {
server = server_name.as_str(),
);
loop {}
loop {
thread::sleep(time::Duration::from_secs(60));
}
}
fn strip_lock_file(p: &Path) -> Option<PathBuf> {