Skip to content

Commit

Permalink
- disable ping to start locally without databae
Browse files Browse the repository at this point in the history
  • Loading branch information
KinNeko-De committed Jan 27, 2024
1 parent f3ed96f commit 9c0bc34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/server/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ func createClient(ctx context.Context) (*mongo.Client, error) {
return nil, err
}

/* TODO start database before connecting
err = client.Ping(ctx, nil)
if err != nil {
return nil, err
}
*/

return client, nil
}
Expand Down

0 comments on commit 9c0bc34

Please sign in to comment.