Skip to content

Commit

Permalink
fix: ignore http server close error (#3854)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengxsong authored Sep 6, 2023
1 parent 7031923 commit b0f6c59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/filesystem/registry/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit b0f6c59

Please sign in to comment.