We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d2b54 commit 1d95c40Copy full SHA for 1d95c40
internal/database/mongodb.go
@@ -3,7 +3,6 @@ package database
3
import (
4
"context"
5
"errors"
6
- "time"
7
8
"go.mongodb.org/mongo-driver/bson"
9
"go.mongodb.org/mongo-driver/bson/primitive"
@@ -45,8 +44,6 @@ type MongoDBRepository struct {
45
44
46
func NewMongoDBRepository(ctx context.Context, opts MongoDBOptions) (*MongoDBRepository, error) {
47
o := options.Client()
48
- o.SetConnectTimeout(time.Duration(3) * time.Second)
49
- o.SetServerSelectionTimeout(time.Duration(3) * time.Second)
50
o.ApplyURI(opts.URI)
51
52
o.SetAuth(options.Credential{
0 commit comments