From 57a5375c99bed6c3797f04ce36c8ca48f632be8b Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Fri, 8 Mar 2024 23:37:03 +0800 Subject: [PATCH] fix bug: component check --- tools/component/component.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/component/component.go b/tools/component/component.go index c9a552c5c..92dfd1433 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -128,13 +128,13 @@ func main() { component.ErrorPrint("Some components checked failed!") os.Exit(-1) } - - var errMinioNotEnabled = errors.New("minio.Enable is not configured to use MinIO") - - var errSignEndPoint = errors.New("minio.signEndPoint contains 127.0.0.1, causing issues with image sending") - var errApiURL = errors.New("object.apiURL contains 127.0.0.1, causing issues with image sending") } +var errMinioNotEnabled = errors.New("minio.Enable is not configured to use MinIO") + +var errSignEndPoint = errors.New("minio.signEndPoint contains 127.0.0.1, causing issues with image sending") +var errApiURL = errors.New("object.apiURL contains 127.0.0.1, causing issues with image sending") + // checkMongo checks the MongoDB connection without retries func checkMongo(config *config.GlobalConfig) error { mongoStu := &component.Mongo{