forked from nrabulinski/attic
Merge pull request #40 from Shawn8901/main
add sleep to keep alive loop of watch-store
This commit is contained in:
commit
efa15b9788
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
use std::{thread, time};
|
||||||
|
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
@ -114,7 +115,9 @@ pub async fn run(opts: Opts) -> Result<()> {
|
||||||
server = server_name.as_str(),
|
server = server_name.as_str(),
|
||||||
);
|
);
|
||||||
|
|
||||||
loop {}
|
loop {
|
||||||
|
thread::sleep(time::Duration::from_secs(60));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn strip_lock_file(p: &Path) -> Option<PathBuf> {
|
fn strip_lock_file(p: &Path) -> Option<PathBuf> {
|
||||||
|
|
Loading…
Reference in a new issue