remove tracking log reqrep

This commit is contained in:
namhq1989 2022-12-21 11:15:57 +07:00
parent b92c8f4b9a
commit bd33c3494e
1 changed files with 0 additions and 5 deletions

View File

@ -30,15 +30,10 @@ func (s Server) Request(subject string, payload []byte) (*nats.Msg, error) {
// RequestWithBindData ...
func (s Server) RequestWithBindData(subject string, payload []byte, result interface{}) error {
msg, err := s.Request(subject, payload)
fmt.Println("data", msg.Data)
fmt.Println("err", err.Error())
if msg == nil || err != nil {
fmt.Println("1")
return err
}
fmt.Println("2")
// map
return BytesToInterface(msg.Data, result)
}