Skip to content

Commit

Permalink
Merge pull request #8551 from choo-stripe/choo/reflection
Browse files Browse the repository at this point in the history
support grpc reflection on APIs
  • Loading branch information
vmg authored Jul 28, 2021
2 parents 185f069 + 4201032 commit 412775d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/vt/servenv/grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive"
"google.golang.org/grpc/reflection"

"context"

Expand Down Expand Up @@ -221,6 +222,9 @@ func serveGRPC() {
return
}

// register reflection to support list calls :)
reflection.Register(GRPCServer)

// listen on the port
log.Infof("Listening for gRPC calls on port %v", *GRPCPort)
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", *GRPCPort))
Expand Down

0 comments on commit 412775d

Please sign in to comment.