Pull rpcplus in local for the time being. We need to modify it for server side middleware

This commit is contained in:
Asim
2015-12-01 23:32:23 +00:00
parent 8825b5c0a8
commit 0c9f8411bb
7 changed files with 805 additions and 19 deletions

View File

@@ -13,13 +13,12 @@ import (
"github.com/micro/go-micro/transport"
log "github.com/golang/glog"
rpc "github.com/youtube/vitess/go/rpcplus"
"golang.org/x/net/context"
)
type rpcServer struct {
rpc *rpc.Server
rpc *server
exit chan chan error
sync.RWMutex
@@ -31,7 +30,7 @@ type rpcServer struct {
func newRpcServer(opts ...Option) Server {
return &rpcServer{
opts: newOptions(opts...),
rpc: rpc.NewServer(),
rpc: newServer(),
handlers: make(map[string]Handler),
subscribers: make(map[*subscriber][]broker.Subscriber),
exit: make(chan chan error),