Integrate tnc #10

Merged
luuvansinh merged 4 commits from integrate-tnc into develop 2022-08-29 08:58:53 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit ad51f45871 - Show all commits

View File

@ -26,3 +26,8 @@ func (e JSONEncoder) Subscribe(subject string, cb nats.Handler) (*nats.Subscript
func (e JSONEncoder) Publish(reply string, data interface{}) error { func (e JSONEncoder) Publish(reply string, data interface{}) error {
return e.encConn.Publish(reply, data) return e.encConn.Publish(reply, data)
} }
// Request ...
func (e JSONEncoder) Request(subject string, data interface{}, res interface{}) error {
return e.encConn.Request(subject, data, res, requestTimeout)
}