fallback for 0.14.0 and older
This commit is contained in:
parent
88e12347d0
commit
c03d935ffd
@ -210,6 +210,11 @@ func (c *rpcCodec) ReadHeader(r *codec.Message, t codec.MessageType) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fallback for 0.14 and older
|
||||||
|
if len(m.Endpoint) == 0 {
|
||||||
|
m.Endpoint = m.Method
|
||||||
|
}
|
||||||
|
|
||||||
// set message
|
// set message
|
||||||
*r = m
|
*r = m
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user