shao 2 days ago
parent
commit
40acc62f6c
2 changed files with 6 additions and 2 deletions
  1. 1 1
      rpc_idl
  2. 5 1
      service/basic.go

+ 1 - 1
rpc_idl

@@ -1 +1 @@
-Subproject commit 095f02566cb5f696ff572ab67b21c5fe2437a33c
+Subproject commit f03bec09473b0c4a31385f0d1383e0a9fc4390c1

+ 5 - 1
service/basic.go

@@ -5,6 +5,10 @@ import (
 	"log/slog"
 )
 
+import (
+	"google.golang.org/protobuf/types/known/emptypb"
+)
+
 import (
 	"protocol-server/common"
 	pb "protocol-server/rpc_idl/dr_protocol_pb"
@@ -14,7 +18,7 @@ type BasicServer struct {
 	pb.UnimplementedBasicServer
 }
 
-func (s *BasicServer) SoftwareInfo(_ context.Context, in *pb.EmptyRequest) (*pb.SoftwareInfoReply, error) {
+func (s *BasicServer) SoftwareInfo(_ context.Context, in *emptypb.Empty) (*pb.SoftwareInfoReply, error) {
 	slog.Info("Received SoftwareInfo")
 	return &pb.SoftwareInfoReply{
 		Module:  common.Module,