From 83336d7d0800dda4fdf9e90b262eb9acd1d5ef45 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 17 Jul 2023 11:15:06 -0400 Subject: [PATCH] Enable reflection --- cmd/server/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/server/main.go b/cmd/server/main.go index d5310fa..c393f44 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -10,6 +10,7 @@ import ( "git.chrishayward.xyz/x/users/proto" "git.chrishayward.xyz/x/users/server" "google.golang.org/grpc" + "google.golang.org/grpc/reflection" "gopkg.in/yaml.v3" "gorm.io/driver/postgres" "gorm.io/driver/sqlite" @@ -73,6 +74,7 @@ func main() { // Start listening for requests. srv := grpc.NewServer() proto.RegisterUsersServer(srv, server.NewUsersServer(config.Secret, db)) + reflection.Register(srv) log.Printf("Listening on :%d", config.Port) srv.Serve(lis) }