From 837a4b57da0a530f33ac90a3d58f9b09b837b887 Mon Sep 17 00:00:00 2001 From: Justin Bastress Date: Mon, 4 Dec 2017 09:37:04 -0500 Subject: [PATCH] NewConfig -> InitConfig --- lib/mysql/mysql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mysql/mysql.go b/lib/mysql/mysql.go index efa061c..122eda0 100644 --- a/lib/mysql/mysql.go +++ b/lib/mysql/mysql.go @@ -103,7 +103,7 @@ type Config struct { } // Fill in a (possibly newly-created) Config instance with the default values -func NewConfig(base *Config) *Config { +func InitConfig(base *Config) *Config { if base == nil { base = &Config{} } @@ -156,7 +156,7 @@ type Connection struct { // Constructor, filling in defaults where needed func NewConnection(config *Config) *Connection { return &Connection{ - Config: NewConfig(config), + Config: InitConfig(config), State: STATE_NOT_CONNECTED, PacketLog: nil, Connection: nil,