From b0f6c597ad744369dc460ded0bf4b18c215ad68c Mon Sep 17 00:00:00 2001 From: fengxsong Date: Wed, 6 Sep 2023 23:45:42 +0800 Subject: [PATCH] fix: ignore http server close error (#3854) --- pkg/filesystem/registry/sync.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/filesystem/registry/sync.go b/pkg/filesystem/registry/sync.go index 8a763d398fb..ea99bbdf569 100644 --- a/pkg/filesystem/registry/sync.go +++ b/pkg/filesystem/registry/sync.go @@ -198,10 +198,12 @@ func syncViaHTTP(targets []string) func(context.Context, string) error { return nil }) } + err = eg.Wait() go func() { - errCh <- eg.Wait() + // for notifying shutdown http Server + errCh <- err }() - return <-errCh + return err } }