Browse Source

*: cockroachdb/cmux -> soheilhy/cmux

Has fixes not in fork. Includes SetReadTimeout.
Anthony Romano 8 years ago
parent
commit
35c5dcefc2
4 changed files with 5 additions and 5 deletions
  1. 1 1
      embed/etcd.go
  2. 2 2
      embed/serve.go
  3. 1 1
      etcdmain/grpc_proxy.go
  4. 1 1
      integration/cluster.go

+ 1 - 1
embed/etcd.go

@@ -38,7 +38,7 @@ import (
 	"github.com/coreos/etcd/rafthttp"
 	"github.com/coreos/pkg/capnslog"
 
-	"github.com/cockroachdb/cmux"
+	"github.com/soheilhy/cmux"
 	"google.golang.org/grpc"
 )
 

+ 2 - 2
embed/serve.go

@@ -34,8 +34,8 @@ import (
 	"github.com/coreos/etcd/pkg/debugutil"
 	"github.com/coreos/etcd/pkg/transport"
 
-	"github.com/cockroachdb/cmux"
 	gw "github.com/grpc-ecosystem/grpc-gateway/runtime"
+	"github.com/soheilhy/cmux"
 	"golang.org/x/net/context"
 	"golang.org/x/net/trace"
 	"google.golang.org/grpc"
@@ -152,7 +152,7 @@ func (sctx *serveCtx) serve(s *etcdserver.EtcdServer, tlsinfo *transport.TLSInfo
 }
 
 // grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC
-// connections or otherHandler otherwise. Copied from cockroachdb.
+// connections or otherHandler otherwise. Given in gRPC docs.
 func grpcHandlerFunc(grpcServer *grpc.Server, otherHandler http.Handler) http.Handler {
 	if otherHandler == nil {
 		return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

+ 1 - 1
etcdmain/grpc_proxy.go

@@ -37,8 +37,8 @@ import (
 	"github.com/coreos/etcd/pkg/transport"
 	"github.com/coreos/etcd/proxy/grpcproxy"
 
-	"github.com/cockroachdb/cmux"
 	grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
+	"github.com/soheilhy/cmux"
 	"github.com/spf13/cobra"
 	"google.golang.org/grpc"
 )

+ 1 - 1
integration/cluster.go

@@ -31,7 +31,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/cockroachdb/cmux"
+	"github.com/soheilhy/cmux"
 	"golang.org/x/net/context"
 	"google.golang.org/grpc"