Skip to content

Commit

Permalink
adding suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldotyu committed Dec 5, 2023
1 parent ae4f76d commit cbe906c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/makeline-service/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"crypto/tls"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -49,9 +50,10 @@ func connectToMongoDB() (*mongo.Collection, error) {
clientOptions = options.Client().ApplyURI(mongoUri).
SetAuth(options.Credential{
AuthSource: mongoDb,
Username: mongoUser,
Password: mongoPassword,
})
Username: mongoUser,
Password: mongoPassword,
}).
SetTLSConfig(&tls.Config{InsecureSkipVerify: false})
}

mongoClient, err := mongo.Connect(ctx, clientOptions)
Expand Down

0 comments on commit cbe906c

Please sign in to comment.