Skip to content

Commit

Permalink
Merge pull request #40 from Shawn8901/main
Browse files Browse the repository at this point in the history
add sleep to keep alive loop of watch-store
  • Loading branch information
zhaofengli authored Apr 4, 2023
2 parents 4d92e69 + d48e920 commit efa15b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/command/watch_store.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::{thread, time};

use anyhow::{anyhow, Result};
use clap::Parser;
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit efa15b9

Please sign in to comment.