fix #55 : now that we have split the code for external shutdown (service) and one-shot, we don't need the 5s sleep anymore (#56)

This commit is contained in:
Thibault "bui" Koechlin 2020-06-02 11:24:50 +02:00 committed by GitHub
parent 72d1fe4c3b
commit ea3b9d9de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,8 +26,6 @@ func termHandler(sig os.Signal) error {
log.Warningf("Acquisition returned error : %s", err)
}
log.Infof("acquisition is finished, wait for parser/bucket/ouputs.")
//let's wait more than enough for in-flight events to be parsed.
time.Sleep(5 * time.Second)
parsersTomb.Kill(nil)
if err := parsersTomb.Wait(); err != nil {
log.Warningf("Parsers returned error : %s", err)