Skip to content

Commit

Permalink
Merge pull request #5 from SwimResults/develop
Browse files Browse the repository at this point in the history
increase database ping timeout to 500ms
  • Loading branch information
konrad2002 authored Dec 3, 2023
2 parents 6baa67f + df2fd72 commit 3864e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Init(c *mongo.Client) {

func PingDatabase() bool {

ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100)
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*500)
defer cancel()

err := client.Ping(ctx, readpref.Primary())
Expand Down

0 comments on commit 3864e80

Please sign in to comment.