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:
parent
4d92e69fc1
commit
d48e920f12
1 changed files with 4 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue