修改DefaultCodes,需要手动赋值

This commit is contained in:
injoyai
2025-03-24 17:01:24 +08:00
parent 1cae60c65e
commit 5e4115d045
3 changed files with 2 additions and 18 deletions

View File

@@ -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) {