ing
This commit is contained in:
parent
4c113374e9
commit
de7d112428
|
@ -399,6 +399,14 @@ func (c *client) handleNotification(resCodec protocol.ClientResponseCodec) error
|
|||
return err
|
||||
}
|
||||
|
||||
if nil == c.ch.GetRPCRegistry() {
|
||||
params, err := notiCodec.Params()
|
||||
if nil != err {
|
||||
return err
|
||||
}
|
||||
return fmt.Errorf("Client: Get Notification[method: %s, params: %v]. But RPC registry is not specified", notiCodec.Method(), params)
|
||||
}
|
||||
|
||||
_, err = c.ch.GetRPCRegistry().Invoke(notiCodec)
|
||||
|
||||
return err
|
||||
|
|
|
@ -73,9 +73,6 @@ func (ch *ClientHandlers) Validate() {
|
|||
if nil == ch.Codec {
|
||||
logging.Logger().Panic("RPC Client Handler: Codec must be specified")
|
||||
}
|
||||
if nil == ch.RPCRegistry {
|
||||
logging.Logger().Panic("RPC Client Handler: RPCRegistry must be specified")
|
||||
}
|
||||
|
||||
if ch.RequestTimeout <= 0 {
|
||||
ch.RequestTimeout = DefaultRequestTimeout
|
||||
|
|
Loading…
Reference in New Issue
Block a user