From 3e08a52468c987175cf6eb55ed650b6019abadef Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Thu, 4 Apr 2019 10:21:32 +0200 Subject: [PATCH] don't sleep after copy event --- demon.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/demon.go b/demon.go index 7709d45..95e0d7c 100644 --- a/demon.go +++ b/demon.go @@ -90,10 +90,5 @@ func listen(history []string, histfile string, persist bool, max int) error { 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) } }