Skip to content

Commit

Permalink
feat: enable grpc server reflection
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Oct 12, 2023
1 parent 0c5438d commit 0b03e64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/cli/store/run.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package store

import (
"google.golang.org/grpc/reflection"
"net"
"net/http"
"runtime/debug"
Expand Down Expand Up @@ -102,6 +103,9 @@ func (r *Run) Run() error {
pb.RegisterDirectoryServiceServer(grpcServer, directoryServer)
tvpb.RegisterPathInfoServiceServer(grpcServer, pathInfoServer)

// register for reflection to help with cli tools
reflection.Register(grpcServer)

srvMetrics.InitializeMetrics(grpcServer)

rpcListener, err := net.Listen("tcp", r.ListenAddr)
Expand Down

0 comments on commit 0b03e64

Please sign in to comment.