From 7952af6782ee604f15139e7519de0516a2d7d528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Thu, 26 Dec 2024 23:40:53 +0800 Subject: [PATCH] feat: fix doc-db-port --- mongo/config.go | 1 - mongo/doc-db.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mongo/config.go b/mongo/config.go index 6dc2e30..3cadee9 100644 --- a/mongo/config.go +++ b/mongo/config.go @@ -7,7 +7,6 @@ type Conf struct { User string Password string Host string - Port string Database string ReplicaName string MaxStaleness time.Duration diff --git a/mongo/doc-db.go b/mongo/doc-db.go index 95c4c6b..36e80d8 100755 --- a/mongo/doc-db.go +++ b/mongo/doc-db.go @@ -34,7 +34,7 @@ func NewDocumentDB(config *Conf, collection string, opts ...mon.Option) (Documen connectionStringTemplate, config.Schema, authenticationURI, - fmt.Sprintf("%s:%s", config.Host, config.Port), + config.Host, ) connectUri, _ := url.Parse(connectionURI)