1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

fix: some linting issues (#2563)

This commit is contained in:
David Brouwer
2022-09-30 16:27:07 +02:00
committed by GitHub
parent 47e6a8d725
commit 85c0b0b8eb
221 changed files with 1025 additions and 1283 deletions

View File

@ -14,7 +14,7 @@ import (
protoCodec "go-micro.dev/v4/codec/proto"
)
// protoStruct implements proto.Message
// protoStruct implements proto.Message.
type protoStruct struct {
Payload string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
}
@ -23,7 +23,7 @@ func (m *protoStruct) Reset() { *m = protoStruct{} }
func (m *protoStruct) String() string { return proto.CompactTextString(m) }
func (*protoStruct) ProtoMessage() {}
// safeBuffer throws away everything and wont Read data back
// safeBuffer throws away everything and wont Read data back.
type safeBuffer struct {
sync.RWMutex
buf []byte