From 190f2ff27cd188f3508ac1f0d66970825ddd3340 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 1 Nov 2018 09:00:00 +0800 Subject: [PATCH] =?UTF-8?q?gform=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81linkinfo=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/frame/gins/gins.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/g/frame/gins/gins.go b/g/frame/gins/gins.go index 6404848e6..285788985 100644 --- a/g/frame/gins/gins.go +++ b/g/frame/gins/gins.go @@ -161,6 +161,9 @@ func Database(name...string) *gdb.Db { if value, ok := nodem["priority"]; ok { node.Priority = gconv.Int(value) } + if value, ok := nodem["linkinfo"]; ok { + node.Linkinfo = gconv.String(value) + } if value, ok := nodem["max-idle"]; ok { node.MaxIdleConnCount = gconv.Int(value) }