修复锁未初始化BUG
This commit is contained in:
parent
eaf61d85df
commit
6783a2a1d0
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user