From c1f0979f714d2f194a74aeb1804a31f6062c0af1 Mon Sep 17 00:00:00 2001 From: hanzhixiao <709674996@qq.com> Date: Wed, 9 Aug 2023 14:25:36 +0800 Subject: [PATCH] 815 Signed-off-by: hanzhixiao <709674996@qq.com> --- tools/component/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/component/main.go b/tools/component/main.go index ebc70913d..a1a83b8d2 100644 --- a/tools/component/main.go +++ b/tools/component/main.go @@ -28,7 +28,7 @@ import ( const ( cfgPath = "../../../../../config/config.yaml" minioHealthCheckDuration = 1 - maxRetry = 100 + maxRetry = 10 componentStartErrCode = 6000 configErrCode = 6001 ) @@ -172,7 +172,7 @@ func checkMongo() error { func checkMinio() error { if config.Config.Object.Enable == "minio" { if exactIP(config.Config.Object.ApiURL) == "127.0.0.1" || exactIP(config.Config.Object.Minio.Endpoint) == "127.0.0.1" { - return ErrConfig.Wrap("apiURL or endpoint contain 127.0.0.1.") + return ErrConfig.Wrap("apiURL or Minio endpoint contain 127.0.0.1.") } conf := config.Config.Object.Minio u, _ := url.Parse(conf.Endpoint)