Skip to content

Commit 4be52ab

Browse files
committed
chore: fix kafka error message
1 parent 3e39ac1 commit 4be52ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/timeline/kafka.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ func (m kafkaClient) ChangeEpisodeStatus(
133133
func (m kafkaClient) writeMessage(ctx context.Context, uid model.UserID, value timelineValue) error {
134134
err := m.kafka.WriteMessages(ctx, kafka.Message{
135135
Topic: timelineTopic,
136-
Key: []byte(fmt.Sprintf("%d", uid)),
136+
Key: fmt.Appendf(nil, "%d", uid),
137137
Value: lo.Must(json.Marshal(value)),
138138
})
139139

140-
return errgo.Wrap(err, "grpc")
140+
return errgo.Wrap(err, "kafka")
141141
}

0 commit comments

Comments
 (0)