[Update] Define method #5
|
@ -49,10 +49,6 @@ func NewClient(config Config) (*Client, error) {
|
||||||
return client, nil
|
return client, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetClient() *Client {
|
|
||||||
return client
|
|
||||||
}
|
|
||||||
|
|
||||||
// requestNats
|
// requestNats
|
||||||
// publish message to nats and waiting response
|
// publish message to nats and waiting response
|
||||||
func requestNats(subject string, data []byte) (*Response, error) {
|
func requestNats(subject string, data []byte) (*Response, error) {
|
||||||
|
|
Loading…
Reference in New Issue