fix(clipboard): add pause between loop iterations

This commit is contained in:
Harsh Shandilya 2023-12-23 15:43:17 +05:30
parent c698b9d509
commit cb5f0b2f13
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
use crate::config::{Act, Match, Replacements};
use anyhow::Result;
use copypasta::{ClipboardContext, ClipboardProvider};
use std::time::Duration;
use tracing::{debug, error};
pub fn monitor(config: Replacements) -> Result<()> {
@ -22,5 +23,6 @@ pub fn monitor(config: Replacements) -> Result<()> {
}
};
}
std::thread::sleep(Duration::from_millis(1_000));
}
}