Skip to content

Commit

Permalink
Fix dto initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
utr1903 committed Feb 8, 2024
1 parent 5ef035d commit 44a3a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/golang/kafkaconsumer/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (g *groupHandler) parseMessageBody(

g.logger.Log(logrus.InfoLevel, ctx, "", "Parsing dto...")

var dto *dtos.CreateRequestDto
dto := &dtos.CreateRequestDto{}
err := json.Unmarshal(messageBody, dto)
if err != nil {
msg := "Parsing dto failed."
Expand Down

0 comments on commit 44a3a12

Please sign in to comment.