Skip to content

Commit 5ba78b0

Browse files
committed
Chore: logging before produce
1 parent a24545c commit 5ba78b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/queue/kafka/operator.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func (k *BytesProduceOperator) Produce(message []byte) error {
314314
return err
315315
}
316316

317-
if test.status == "success" {
317+
if test.Status == "success" {
318318
count.Add(1)
319319
}
320320

@@ -333,6 +333,5 @@ func (k *BytesProduceOperator) Produce(message []byte) error {
333333
}
334334

335335
type testStruct struct {
336-
requestId string
337-
status string
336+
Status string `json:"status"`
338337
}

0 commit comments

Comments
 (0)