Skip to content
Snippets Groups Projects

[renovate] Update golangci/golangci-lint Docker tag to v1.53.3

Merged Ghost User requested to merge renovate/golangci-golangci-lint-1.x into master
Files
7
@@ -20,16 +20,11 @@ const (
// GetMongoConnection Retrieves a client to the MongoDB.
func GetMongoConnection() (*mongo.Client, context.Context, context.CancelFunc) {
mongoConnection := config.DatabaseConnection
client, err := mongo.NewClient(options.Client().ApplyURI(mongoConnection))
if err != nil {
log.Printf("Failed to create client: %v", err)
}
ctx, cancel := context.WithTimeout(context.Background(), connectTimeout*time.Second)
err = client.Connect(ctx)
client, err := mongo.Connect(ctx, options.Client().ApplyURI(mongoConnection))
if err != nil {
log.Printf("Failed to connect to cluster: %v", err)
log.Printf("Failed to create client: %v", err)
}
// Force a connection to verify our connection string
Loading