fallback for 0.14.0 and older

This commit is contained in:
Asim Aslam 2019-02-01 15:57:34 +00:00
parent 88e12347d0
commit c03d935ffd

View File

@ -210,6 +210,11 @@ func (c *rpcCodec) ReadHeader(r *codec.Message, t codec.MessageType) error {
return err
}
// fallback for 0.14 and older
if len(m.Endpoint) == 0 {
m.Endpoint = m.Method
}
// set message
*r = m