Browse Source

Enable reflection

master
parent
commit
83336d7d08
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 2
      cmd/server/main.go

2
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)
}
Loading…
Cancel
Save