use the router

This commit is contained in:
Asim Aslam 2019-06-12 12:05:34 +01:00
parent 7a1cef46b0
commit 000e25a4b2

View File

@ -40,7 +40,7 @@ func newRpcServer(opts ...Option) Server {
return &rpcServer{
opts: options,
router: DefaultRouter,
router: router,
handlers: make(map[string]Handler),
subscribers: make(map[*subscriber][]broker.Subscriber),
exit: make(chan chan error),