From 53211278b149c99fcc9b5307027cf8c4f3dee207 Mon Sep 17 00:00:00 2001 From: kpango Date: Wed, 15 Mar 2023 17:32:04 +0900 Subject: [PATCH] enable gorules Signed-off-by: kpango --- apis/grpc/v1/payload/interface.go | 10 +++++----- hack/gorules/rules_test.go | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apis/grpc/v1/payload/interface.go b/apis/grpc/v1/payload/interface.go index 245051eb74e..a63d41e0bbc 100644 --- a/apis/grpc/v1/payload/interface.go +++ b/apis/grpc/v1/payload/interface.go @@ -21,9 +21,9 @@ type Payload interface { ProtoMessage() ProtoReflect() protoreflect.Message Descriptor() ([]byte, []int) - // MarshalToSizedBufferVT(dAtA []byte) (int, error) - // MarshalToVT(dAtA []byte) (int, error) - // MarshalVT() (dAtA []byte, err error) - // SizeVT() (n int) - // UnmarshalVT(dAtA []byte) error + MarshalToSizedBufferVT(dAtA []byte) (int, error) + MarshalToVT(dAtA []byte) (int, error) + MarshalVT() (dAtA []byte, err error) + SizeVT() (n int) + UnmarshalVT(dAtA []byte) error } diff --git a/hack/gorules/rules_test.go b/hack/gorules/rules_test.go index 9548753bc53..713f5db1cb6 100644 --- a/hack/gorules/rules_test.go +++ b/hack/gorules/rules_test.go @@ -1,5 +1,3 @@ -//go:build exclude - // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License");