Merge pull request #40 from Shawn8901/main

add sleep to keep alive loop of watch-store
This commit is contained in:
Zhaofeng Li 2023-04-04 16:09:06 -06:00 committed by GitHub
commit efa15b9788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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> {