From 8d891b6a209654a579d495da2754564abfcd6373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nussbaumer?= Date: Tue, 6 Feb 2024 18:21:52 +0100 Subject: [PATCH] fix: don't log nil error returned when the cache terminates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clément Nussbaumer --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f1b5055c..a35c2cc4 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func main() { } go func() { - if err = ca.Start(ctx); !errors.Is(err, context.Canceled) { + if err = ca.Start(ctx); err != nil && !errors.Is(err, context.Canceled) { log.Printf("client cache error: %s", err) cancel() }