don't sleep after copy event

This commit is contained in:
yory8 2019-04-04 10:21:32 +02:00
parent 7de5487279
commit 3e08a52468

View file

@ -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)
}
}