veyron/services/wsprd/app,veyron/services/wsprd/browspr: remove ipc.LeafDispatcher
The corresponding core change is in go/vcl/1323
Change-Id: Ic7fad61735d272b30b1329ac78512266272f67b8
MultiPart: 3/4
diff --git a/services/wsprd/app/app_test.go b/services/wsprd/app/app_test.go
index dc236ec..bdfca88 100644
--- a/services/wsprd/app/app_test.go
+++ b/services/wsprd/app/app_test.go
@@ -18,6 +18,7 @@
"v.io/wspr/veyron/services/wsprd/lib"
"v.io/wspr/veyron/services/wsprd/lib/testwriter"
+ "v.io/core/veyron/lib/testutil"
tsecurity "v.io/core/veyron/lib/testutil/security"
"v.io/core/veyron/profiles"
"v.io/core/veyron/runtimes/google/ipc/stream/proxy"
@@ -134,7 +135,7 @@
}
func startAdderServer() (ipc.Server, naming.Endpoint, error) {
- return startAnyServer(false, ipc.LeafDispatcher(simpleAdder{}, nil))
+ return startAnyServer(false, testutil.LeafDispatcher(simpleAdder{}, nil))
}
func startProxy() (*proxy.Proxy, error) {
diff --git a/services/wsprd/browspr/browspr_test.go b/services/wsprd/browspr/browspr_test.go
index cdd8e0b..f9bcfda 100644
--- a/services/wsprd/browspr/browspr_test.go
+++ b/services/wsprd/browspr/browspr_test.go
@@ -77,7 +77,7 @@
return nil, nil, err
}
- if err := s.ServeDispatcher(desiredName, ipc.LeafDispatcher(mockServer{}, nil)); err != nil {
+ if err := s.Serve(desiredName, mockServer{}, nil); err != nil {
return nil, nil, err
}