mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 00:35:02 +08:00
keep alive for gRpc calls
This commit is contained in:
@@ -17,7 +17,6 @@ import (
|
||||
"github.com/chrislusf/seaweedfs/weed/util"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/soheilhy/cmux"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/reflection"
|
||||
)
|
||||
|
||||
@@ -208,7 +207,7 @@ func runServer(cmd *Command, args []string) bool {
|
||||
httpL := m.Match(cmux.Any())
|
||||
|
||||
// Create your protocol servers.
|
||||
grpcS := grpc.NewServer()
|
||||
grpcS := util.NewGrpcServer()
|
||||
master_pb.RegisterSeaweedServer(grpcS, ms)
|
||||
reflection.Register(grpcS)
|
||||
|
||||
|
Reference in New Issue
Block a user