mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
scope time repo watcher
This commit is contained in:
parent
92f63d107c
commit
8cdb02349f
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ use notify::{Error, RecommendedWatcher, RecursiveMode};
|
|||
use notify_debouncer_mini::{
|
||||
new_debouncer, DebouncedEvent, Debouncer,
|
||||
};
|
||||
use scopetime::scope_time;
|
||||
use std::{
|
||||
path::Path, sync::mpsc::RecvError, thread, time::Duration,
|
||||
};
|
||||
|
|
@ -16,6 +17,8 @@ pub struct RepoWatcher {
|
|||
|
||||
impl RepoWatcher {
|
||||
pub fn new(workdir: &str) -> Result<Self> {
|
||||
scope_time!("RepoWatcher::new");
|
||||
|
||||
let (tx, rx) = std::sync::mpsc::channel();
|
||||
|
||||
let mut debouncer =
|
||||
|
|
|
|||
Loading…
Reference in a new issue