Skip to content

Commit ae13253

Browse files
committed
increase database ping timeout to 500ms
1 parent d3595b3 commit ae13253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func Init(c *mongo.Client) {
2525

2626
func PingDatabase() bool {
2727

28-
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100)
28+
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*500)
2929
defer cancel()
3030

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

0 commit comments

Comments
 (0)