修复锁未初始化BUG

This commit is contained in:
白茶清欢 2023-08-17 10:38:33 +08:00
parent eaf61d85df
commit 6783a2a1d0

View File

@ -134,6 +134,7 @@ type RealClient struct {
// Date : 5:05 下午 2021/2/27 // Date : 5:05 下午 2021/2/27
func NewClient(config map[string]*FullConfig, parseErrorFunc func(err error) error) (ClientInterface, error) { func NewClient(config map[string]*FullConfig, parseErrorFunc func(err error) error) (ClientInterface, error) {
c := &OwnClient{ c := &OwnClient{
lock: &sync.RWMutex{},
instanceTable: make(map[string]*RealClient), instanceTable: make(map[string]*RealClient),
loggerTable: make(map[string]*zap.Logger), loggerTable: make(map[string]*zap.Logger),
confTable: config, confTable: config,