feat: fix doc-db-port
This commit is contained in:
parent
240027443a
commit
7952af6782
|
@ -7,7 +7,6 @@ type Conf struct {
|
||||||
User string
|
User string
|
||||||
Password string
|
Password string
|
||||||
Host string
|
Host string
|
||||||
Port string
|
|
||||||
Database string
|
Database string
|
||||||
ReplicaName string
|
ReplicaName string
|
||||||
MaxStaleness time.Duration
|
MaxStaleness time.Duration
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDocumentDB(config *Conf, collection string, opts ...mon.Option) (Documen
|
||||||
connectionStringTemplate,
|
connectionStringTemplate,
|
||||||
config.Schema,
|
config.Schema,
|
||||||
authenticationURI,
|
authenticationURI,
|
||||||
fmt.Sprintf("%s:%s", config.Host, config.Port),
|
config.Host,
|
||||||
)
|
)
|
||||||
|
|
||||||
connectUri, _ := url.Parse(connectionURI)
|
connectUri, _ := url.Parse(connectionURI)
|
||||||
|
|
Loading…
Reference in New Issue