don't sleep after copy event
This commit is contained in:
parent
7de5487279
commit
3e08a52468
1 changed files with 0 additions and 5 deletions
5
demon.go
5
demon.go
|
@ -90,10 +90,5 @@ func listen(history []string, histfile string, persist bool, max int) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// writing to json is time consuming, so it's fine to sleep less and
|
|
||||||
// get ready to detect new events sooner.
|
|
||||||
// also because if we copied once, we might copy soon after.
|
|
||||||
time.Sleep(250 * time.Millisecond)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue