🐛 Fix grpc server did not register service
This commit is contained in:
parent
c343374416
commit
6d7f0b0518
@ -4,6 +4,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
|
|
||||||
"git.solsynth.dev/hypernet/nexus/pkg/proto"
|
"git.solsynth.dev/hypernet/nexus/pkg/proto"
|
||||||
|
wproto "git.solsynth.dev/hypernet/wallet/pkg/proto"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
health "google.golang.org/grpc/health/grpc_health_v1"
|
health "google.golang.org/grpc/health/grpc_health_v1"
|
||||||
@ -12,6 +13,7 @@ import (
|
|||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
proto.UnimplementedDirectoryServiceServer
|
proto.UnimplementedDirectoryServiceServer
|
||||||
|
wproto.UnimplementedPaymentServiceServer
|
||||||
health.UnimplementedHealthServer
|
health.UnimplementedHealthServer
|
||||||
|
|
||||||
srv *grpc.Server
|
srv *grpc.Server
|
||||||
@ -23,6 +25,7 @@ func NewGrpc() *Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proto.RegisterDirectoryServiceServer(server.srv, server)
|
proto.RegisterDirectoryServiceServer(server.srv, server)
|
||||||
|
wproto.RegisterPaymentServiceServer(server.srv, server)
|
||||||
health.RegisterHealthServer(server.srv, server)
|
health.RegisterHealthServer(server.srv, server)
|
||||||
|
|
||||||
reflection.Register(server.srv)
|
reflection.Register(server.srv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user