修复锁未初始化BUG

This commit is contained in:
zhangdeman committed 2023-08-17 10:38:33 +08:00
1 parent eaf61d85df
commit 6783a2a1d0
1 file changed
+1
+1
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,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.