Skip to content

Commit 0e283ad

Browse files
committed
fix dupword issues
1 parent a9e63db commit 0e283ad

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

internal/topic/topicreaderinternal/decoders.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (m *decoderMap) Decode(codec rawtopiccommon.Codec, input io.Reader) (io.Rea
3535
return f(input)
3636
}
3737
return nil, xerrors.WithStackTrace(xerrors.Wrap(
38-
fmt.Errorf("ydb: failed decompress message with codec codec %v: %w", codec, PublicErrUnexpectedCodec),
38+
fmt.Errorf("ydb: failed decompress message with codec %v: %w", codec, PublicErrUnexpectedCodec),
3939
))
4040
}
4141

topic/topicsugar/topicreader.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ func ProtoUnmarshal(msg *topicreader.Message, dst proto.Message) error {
1313
return msg.UnmarshalTo(protobufUnmarshaler{dst: dst})
1414
}
1515

16-
// JSONUnmarshal unmarshal json message content to dst
17-
// dst must by pointer to struct
16+
// JSONUnmarshal unmarshal json message content to dst must by pointer to struct
1817
func JSONUnmarshal(msg *topicreader.Message, dst interface{}) error {
1918
return UnmarshalMessageWith(msg, json.Unmarshal, dst)
2019
}
@@ -25,8 +24,7 @@ func UnmarshalMessageWith(msg *topicreader.Message, unmarshaler UnmarshalFunc, v
2524
return msg.UnmarshalTo(messageUnmarshaler{unmarshaler: unmarshaler, dst: v})
2625
}
2726

28-
// ReadMessageDataWithCallback receive full content of message as data
29-
// data slice MUST not be used after return from f.
27+
// ReadMessageDataWithCallback receive full content of message as data slice MUST not be used after return from f.
3028
// if you need content after return from function - copy it with
3129
// copy(dst, data) to another byte slice
3230
func ReadMessageDataWithCallback(msg *topicreader.Message, f func(data []byte) error) error {

0 commit comments

Comments
 (0)