Don't fetch signatures in WSPR before each RPC.
We fetch the signatures in JS when bind is called, so this is redundant
and causing slowness.
Change-Id: I28461cffd365ac3f0044ba85691d4fa7b2ec174a
diff --git a/services/wspr/internal/app/app.go b/services/wspr/internal/app/app.go
index 7be91aa..6edb6c0 100644
--- a/services/wspr/internal/app/app.go
+++ b/services/wspr/internal/app/app.go
@@ -374,22 +374,6 @@
// SendVeyronRequest makes a vanadium request for the given flowId. If signal is non-nil, it will receive
// the call object after it has been constructed.
func (c *Controller) sendVeyronRequest(ctx *context.T, id int32, msg *RpcRequest, inArgs []interface{}, w lib.ClientWriter, stream *outstandingStream, span vtrace.Span) {
- sig, err := c.getSignature(ctx, msg.Name)
- if err != nil {
- w.Error(err)
- return
- }
- methName := lib.UppercaseFirstCharacter(msg.Method)
- methSig, ok := signature.FirstMethod(sig, methName)
- if !ok {
- w.Error(fmt.Errorf("method %q not found in signature: %#v", methName, sig))
- return
- }
- if len(methSig.InArgs) != len(inArgs) {
- w.Error(fmt.Errorf("invalid number of arguments, expected: %v, got:%v", methSig, *msg))
- return
- }
-
// We have to make the start call synchronous so we can make sure that we populate
// the call map before we can Handle a recieve call.
call, err := c.startCall(ctx, w, msg, inArgs)