From 0160782cbd0a4f7b1c8c4f4a44a420f5a8fbd9c3 Mon Sep 17 00:00:00 2001 From: Boris Ershov Date: Thu, 8 Aug 2024 17:52:51 +0700 Subject: [PATCH] fix(#37): Fix anonymization process logging --- routines/anonymizer/anonymizer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routines/anonymizer/anonymizer.go b/routines/anonymizer/anonymizer.go index cfa907a..5eca238 100644 --- a/routines/anonymizer/anonymizer.go +++ b/routines/anonymizer/anonymizer.go @@ -42,7 +42,9 @@ func Runtime(app appctx.App) error { timer = time.NewTimer(cc.Progress.Rhythm) if cc.Progress.Rhythm == 0 { - timer.Stop() + if !timer.Stop() { + <-timer.C + } } if err := anonymize(