From fbb4ccb197355e8f269126976d77223054309a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Thu, 15 Sep 2022 11:02:24 +0800 Subject: [PATCH] - update --- client.go | 7 +++++++ const.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 10a8fdf..b26ca3e 100644 --- a/client.go +++ b/client.go @@ -5,6 +5,7 @@ import ( "go.dtapp.net/dorm" "go.dtapp.net/goip" "go.dtapp.net/golog" + "log" ) // client *dorm.GormClient @@ -122,6 +123,12 @@ func NewClient(config *ClientConfig) (*Client, error) { c.mongoCreateCollectionTask(ctx) c.mongoCreateIndexesTask(ctx) + } else { + return nil, mongoClientFunNoConfig + } + + if c.config.debug { + log.Printf("[gojobs]:%+v\n", c) } return c, nil diff --git a/const.go b/const.go index 0db82fd..12d3801 100644 --- a/const.go +++ b/const.go @@ -1,6 +1,6 @@ package gojobs const ( - Version = "1.0.86" + Version = "1.0.87" SpecifyIpNull = "0.0.0.0" )