Skip to content

Commit

Permalink
Don't try to register channelz (this should be done elsewhere)
Browse files Browse the repository at this point in the history
	lis, err := net.Listen("tcp", "localhost:8153")
	if err != nil {
		log.Fatalf("failed to listen: %v", err)
	}
	s := grpc.NewServer()
	service.RegisterChannelzServiceToServer(s)
	go s.Serve(lis)
  • Loading branch information
jscheinblum committed Mar 8, 2024
1 parent a59dff4 commit 67ca425
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions go/cmd/vtgateproxy/vtgateproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ limitations under the License.
package main

import (
"log"
"math/rand"
"net"
"time"

"google.golang.org/grpc"
"google.golang.org/grpc/channelz/service"
"vitess.io/vitess/go/exit"
"vitess.io/vitess/go/vt/servenv"
"vitess.io/vitess/go/vt/vtgateproxy"
Expand All @@ -42,14 +38,6 @@ func main() {
servenv.ParseFlags("vtgateproxy")
servenv.Init()

lis, err := net.Listen("tcp", "localhost:8153")
if err != nil {
log.Fatalf("failed to listen: %v", err)
}
s := grpc.NewServer()
service.RegisterChannelzServiceToServer(s)
go s.Serve(lis)

servenv.OnRun(func() {
// Flags are parsed now. Parse the template using the actual flag value and overwrite the current template.
vtgateproxy.RegisterJsonDiscovery()
Expand Down

0 comments on commit 67ca425

Please sign in to comment.