.gitignore
This commit is contained in:
@@ -8,7 +8,6 @@ package mongo
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"gitee.com/red-future---jilin-g/common/log/consts"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
@@ -16,6 +15,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"gitee.com/red-future---jilin-g/common/log/consts"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/glog"
|
||||
"github.com/gogf/gf/v2/os/grpool"
|
||||
@@ -120,7 +121,7 @@ func (d *BaseDataSource) Connect(ctx context.Context) error {
|
||||
SetHeartbeatInterval(10 * time.Second).
|
||||
SetMaxConnIdleTime(60 * time.Second).
|
||||
SetRetryWrites(true).
|
||||
SetRetryReads(true)
|
||||
SetRetryReads(true).SetMonitor(commandMonitor())
|
||||
|
||||
var err error
|
||||
d.client, err = mongo.Connect(opt)
|
||||
|
||||
Reference in New Issue
Block a user