mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
修改DefaultCodes,需要手动赋值
This commit is contained in:
@@ -27,7 +27,6 @@ func NewManage(cfg *ManageConfig, op ...client.Option) (*Manage, error) {
|
||||
}
|
||||
|
||||
//代码
|
||||
DefaultCodes = &Codes{}
|
||||
codesClient, err := cfg.Dial(op...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -37,7 +36,6 @@ func NewManage(cfg *ManageConfig, op ...client.Option) (*Manage, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
DefaultCodes = codes
|
||||
|
||||
//连接池
|
||||
p, err := NewPool(func() (*Client, error) {
|
||||
|
||||
Reference in New Issue
Block a user