Skip to content

Commit

Permalink
fix(server): use default mongo conn timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jun 26, 2023
1 parent 29083d8 commit f0e5ccc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/internal/app/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package app
import (
"context"
"fmt"
"time"

"github.com/reearth/reearth/server/internal/app/config"
"github.com/reearth/reearth/server/internal/infrastructure/auth0"
Expand Down Expand Up @@ -32,7 +31,6 @@ func initReposAndGateways(ctx context.Context, conf *config.Config, debug bool)
ctx,
options.Client().
ApplyURI(conf.DB).
SetConnectTimeout(time.Second*10).
SetMonitor(otelmongo.NewMonitor()),
)
if err != nil {
Expand Down

0 comments on commit f0e5ccc

Please sign in to comment.