Skip to content

Commit

Permalink
fix: missing yavirtd impl
Browse files Browse the repository at this point in the history
  • Loading branch information
anrs committed May 13, 2023
1 parent d044ab5 commit 80e2610
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/server/grpc/grpc_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ func (y *GRPCYavirtd) GetGuest(ctx context.Context, opts *pb.GetGuestOptions) (*
}, nil
}

func (y *GRPCYavirtd) GetGuestIDList(ctx context.Context, opts *pb.GetGuestIDListOptions) (*pb.GetGuestIDListMessage, error) {

Check warning on line 67 in internal/server/grpc/grpc_app.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
log.Infof("[grpcserver] get guest id list")
ids, err := y.service.GetGuestIDList(y.service.VirtContext(ctx))
if err != nil {
return nil, errors.Trace(err)
}
return &pb.GetGuestIDListMessage{Ids: ids}, nil
}

// GetGuestUUID .
func (y *GRPCYavirtd) GetGuestUUID(ctx context.Context, opts *pb.GetGuestOptions) (*pb.GetGuestUUIDMessage, error) {
log.Infof("[grpcserver] get guest UUID: %s", opts.Id)
Expand Down

0 comments on commit 80e2610

Please sign in to comment.