From 8cfbecfa819b713996e6267bc5d31d8bf1c65633 Mon Sep 17 00:00:00 2001 From: dong Date: Tue, 17 Oct 2023 03:02:34 +0000 Subject: [PATCH] fix: mogodb url connent --- tools/component/component.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/component/component.go b/tools/component/component.go index b2179ae67..8d5eb1c48 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -186,7 +186,7 @@ func checkMongo() error { config.Config.Mongo.MaxPoolSize) } } - client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI(uri) + client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI(uri)) if err != nil { return errs.Wrap(err) } else {