feat: fix doc-db-port

This commit is contained in:
王性驊 2024-12-26 23:40:53 +08:00
parent 240027443a
commit 7952af6782
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@ type Conf struct {
User string
Password string
Host string
Port string
Database string
ReplicaName string
MaxStaleness time.Duration

View File

@ -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)