From 6d7f0b05182720f00840377d47a3d46b44a7df3b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 29 Jan 2025 13:19:05 +0800 Subject: [PATCH] :bug: Fix grpc server did not register service --- pkg/internal/grpc/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/internal/grpc/server.go b/pkg/internal/grpc/server.go index 3f23e3a..b10d9fb 100644 --- a/pkg/internal/grpc/server.go +++ b/pkg/internal/grpc/server.go @@ -4,6 +4,7 @@ import ( "net" "git.solsynth.dev/hypernet/nexus/pkg/proto" + wproto "git.solsynth.dev/hypernet/wallet/pkg/proto" "github.com/spf13/viper" "google.golang.org/grpc" health "google.golang.org/grpc/health/grpc_health_v1" @@ -12,6 +13,7 @@ import ( type Server struct { proto.UnimplementedDirectoryServiceServer + wproto.UnimplementedPaymentServiceServer health.UnimplementedHealthServer srv *grpc.Server @@ -23,6 +25,7 @@ func NewGrpc() *Server { } proto.RegisterDirectoryServiceServer(server.srv, server) + wproto.RegisterPaymentServiceServer(server.srv, server) health.RegisterHealthServer(server.srv, server) reflection.Register(server.srv)