Open westwin opened 6 months ago
and btw, in https://github.com/smallnest/rpcx/blob/master/client/xclient.go, line 889 c.Plugins.DoPreCall(ctx, c.servicePath, serviceMethod, args)
what if the DoPreCall() returns an error ?
and btw, in https://github.com/smallnest/rpcx/blob/master/client/xclient.go, line 889 c.Plugins.DoPreCall(ctx, c.servicePath, serviceMethod, args)
what if the DoPreCall() returns an error ?
looks like a bug ?
I'm thinking if there's a way to write a server plugin to validate the request ? looks like server PreCall plugin can do this.
but what if with the use of AddHandler() ?
thanks