处理rpcx双向通信处理流找不到的情况

This commit is contained in:
liwei1dao 2022-10-20 11:17:37 +08:00
parent 800d0203d1
commit f126833315

View File

@ -54,16 +54,20 @@ func (this *RPCX) GetServiceTags() []string {
}
func (this *RPCX) RegisterFunction(fn interface{}) (err error) {
this.service.RegisterFunction(fn)
this.client.RegisterFunction(fn)
return
}
func (this *RPCX) RegisterFunctionName(name string, fn interface{}) (err error) {
this.service.RegisterFunctionName(name, fn)
this.client.RegisterFunctionName(name, fn)
return
}
func (this *RPCX) UnregisterAll() (err error) {
return this.service.UnregisterAll()
err = this.service.UnregisterAll()
err = this.client.UnregisterAll()
return
}
//同步调用