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{