Skip to content

Commit 1d95c40

Browse files
committed
x
1 parent 39d2b54 commit 1d95c40

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/database/mongodb.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package database
33
import (
44
"context"
55
"errors"
6-
"time"
76

87
"go.mongodb.org/mongo-driver/bson"
98
"go.mongodb.org/mongo-driver/bson/primitive"
@@ -45,8 +44,6 @@ type MongoDBRepository struct {
4544

4645
func NewMongoDBRepository(ctx context.Context, opts MongoDBOptions) (*MongoDBRepository, error) {
4746
o := options.Client()
48-
o.SetConnectTimeout(time.Duration(3) * time.Second)
49-
o.SetServerSelectionTimeout(time.Duration(3) * time.Second)
5047
o.ApplyURI(opts.URI)
5148

5249
o.SetAuth(options.Credential{

0 commit comments

Comments
 (0)