mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 15:42:25 +08:00
优化代码
This commit is contained in:
@@ -19,7 +19,7 @@ type Client struct {
|
||||
// NewClient 构造
|
||||
func NewClient() (*Client, error) {
|
||||
r := new(Client)
|
||||
conn, err := nats.Connect(config.CONF.MQ.NatsUrl)
|
||||
conn, err := nats.Connect(config.GetConfig().MQ.NatsUrl)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user