diff --git a/mongo/client.go b/mongo/client.go index 679cda6ae2..4266412aab 100644 --- a/mongo/client.go +++ b/mongo/client.go @@ -209,7 +209,6 @@ func NewClient(opts ...*options.ClientOptions) (*Client, error) { clientOpt.SetMaxPoolSize(defaultMaxPoolSize) } - cfg, err := topology.NewConfig(clientOpt, client.clock) if err != nil { return nil, err