修复锁未初始化BUG

This commit is contained in:
白茶清欢 2023-08-17 10:38:33 +08:00
parent eaf61d85df
commit 6783a2a1d0
1 changed files with 1 additions and 0 deletions

View File

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