veyron2/ipc: 4 of n. 'Invoker and Signature' rationalisation.
- first CL to remove use of ReflectInvoker from our app code.
Change-Id: Ia2ef1ae14f248fa16c4f798d8fc68136c0e1d017
diff --git a/tools/application/impl_test.go b/tools/application/impl_test.go
index b107a50..ffe8c66 100644
--- a/tools/application/impl_test.go
+++ b/tools/application/impl_test.go
@@ -69,8 +69,7 @@
}
func (d *dispatcher) Lookup(suffix, method string) (interface{}, security.Authorizer, error) {
- invoker := ipc.ReflectInvoker(repository.ApplicationServer(&server{suffix: suffix}))
- return invoker, nil, nil
+ return repository.ApplicationServer(&server{suffix: suffix}), nil, nil
}
func startServer(t *testing.T, r veyron2.Runtime) (ipc.Server, naming.Endpoint, error) {
diff --git a/tools/binary/impl_test.go b/tools/binary/impl_test.go
index 0dbd6b0..073e8f3 100644
--- a/tools/binary/impl_test.go
+++ b/tools/binary/impl_test.go
@@ -78,8 +78,7 @@
}
func (d *dispatcher) Lookup(suffix, method string) (interface{}, security.Authorizer, error) {
- invoker := ipc.ReflectInvoker(repository.BinaryServer(&server{suffix: suffix}))
- return invoker, nil, nil
+ return repository.BinaryServer(&server{suffix: suffix}), nil, nil
}
func startServer(t *testing.T, r veyron2.Runtime) (ipc.Server, naming.Endpoint, error) {
diff --git a/tools/mgmt/nodex/impl_test.go b/tools/mgmt/nodex/impl_test.go
index b07c4e9..3100e93 100644
--- a/tools/mgmt/nodex/impl_test.go
+++ b/tools/mgmt/nodex/impl_test.go
@@ -112,8 +112,7 @@
}
func (d *dispatcher) Lookup(suffix, method string) (interface{}, security.Authorizer, error) {
- invoker := ipc.ReflectInvoker(node.NodeServer(&mockNodeInvoker{tape: d.tape, t: d.t}))
- return invoker, nil, nil
+ return node.NodeServer(&mockNodeInvoker{tape: d.tape, t: d.t}), nil, nil
}
func startServer(t *testing.T, r veyron2.Runtime, tape *Tape) (ipc.Server, naming.Endpoint, error) {
diff --git a/tools/mounttable/impl_test.go b/tools/mounttable/impl_test.go
index 0a40376..0565b37 100644
--- a/tools/mounttable/impl_test.go
+++ b/tools/mounttable/impl_test.go
@@ -56,8 +56,7 @@
}
func (d *dispatcher) Lookup(suffix, method string) (interface{}, security.Authorizer, error) {
- invoker := ipc.ReflectInvoker(mounttable.MountTableServer(&server{suffix: suffix}))
- return invoker, nil, nil
+ return mounttable.MountTableServer(&server{suffix: suffix}), nil, nil
}
func startServer(t *testing.T, r veyron2.Runtime) (ipc.Server, naming.Endpoint, error) {
diff --git a/tools/profile/impl_test.go b/tools/profile/impl_test.go
index fde8b26..a739a15 100644
--- a/tools/profile/impl_test.go
+++ b/tools/profile/impl_test.go
@@ -80,8 +80,7 @@
}
func (d *dispatcher) Lookup(suffix, method string) (interface{}, security.Authorizer, error) {
- invoker := ipc.ReflectInvoker(repository.ProfileServer(&server{suffix: suffix}))
- return invoker, nil, nil
+ return repository.ProfileServer(&server{suffix: suffix}), nil, nil
}
func startServer(t *testing.T, r veyron2.Runtime) (ipc.Server, naming.Endpoint, error) {