From 5164125ff4071cd87bdeb4f2d541dbbc045d9214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 9 Mar 2023 18:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7redis=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.go b/client.go index 3aabace..2e2c96b 100644 --- a/client.go +++ b/client.go @@ -64,6 +64,9 @@ func InitWithCfgDir(cfgDir string) error { if err := c.batchLoadConfig(cfgDir); nil != err { return err } + if err := c.init(); nil != err { + return err + } Client = c return nil } @@ -85,6 +88,9 @@ func InitWithCfgFileList(cfgFileList []string) error { return err } } + if err := c.init(); nil != err { + return err + } Client = c return nil }