build email

This commit is contained in:
Tue 2022-11-17 14:15:08 +07:00
parent bf0cbdfbea
commit c4ea51c55e
1 changed files with 6 additions and 2 deletions

View File

@ -19,9 +19,13 @@ const (
KeyCreateSupplierUser = "create_user"
)
var (
c *Client
)
// GetEmail ...
func GetEmail() *Client {
return &Client{}
return c
}
// Client ...
@ -40,7 +44,7 @@ func NewClient(cfg Config) (*Client, error) {
return nil, fmt.Errorf("nats connect failed: %v", err)
}
c := &Client{
c = &Client{
Config: cfg,
natsServer: natsio.GetServer(),
natsJetStream: natsio.GetJetStream(),