Skip to content

Commit

Permalink
fix: return error on unmarshal failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 9, 2024
1 parent 1de81dc commit 04f6e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/dal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (c *Collector) redisRouter(ctx context.Context, msg *redis.Message) error {
var data *aggregator.SubmissionData
err := json.Unmarshal([]byte(msg.Payload), &data)
if err != nil {
return nil
return err
}

go c.processIncomingData(ctx, data)
Expand Down

0 comments on commit 04f6e8e

Please sign in to comment.