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)