*: gRPC + HTTP on the same port

We use cmux to do this since we want to do http+https on the same
port in the near future too.
This commit is contained in:
Xiang Li
2016-03-21 14:21:09 -07:00
parent adebd91114
commit d3809abe42
12 changed files with 47 additions and 52 deletions

View File

@ -49,7 +49,7 @@ var (
)
func init() {
RootCmd.PersistentFlags().StringSliceVar(&endpoints, "endpoints", []string{"127.0.0.1:2378"}, "gRPC endpoints")
RootCmd.PersistentFlags().StringSliceVar(&endpoints, "endpoints", []string{"127.0.0.1:2379"}, "gRPC endpoints")
RootCmd.PersistentFlags().UintVar(&totalConns, "conns", 1, "Total number of gRPC connections")
RootCmd.PersistentFlags().UintVar(&totalClients, "clients", 1, "Total number of gRPC clients")