Skip to content

Commit

Permalink
Changed from error to errorcontext in redis handle
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
  • Loading branch information
nyagamunene authored and dborovcanin committed May 15, 2024
1 parent bb4f0b5 commit a8be062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/events/redis/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ func (es *subEventStore) handle(ctx context.Context, stream string, msgs []redis
}

if err := h.Handle(ctx, event); err != nil {
es.logger.Warn(fmt.Sprintf("failed to handle redis event: %s", err))
es.logger.ErrorContext(ctx, fmt.Sprintf("failed to handle redis event: %s", err))

return
}

if err := es.client.XAck(ctx, stream, group, msg.ID).Err(); err != nil {
es.logger.Warn(fmt.Sprintf("failed to ack redis event: %s", err))
es.logger.ErrorContext(ctx, fmt.Sprintf("failed to ack redis event: %s", err))

return
}
Expand Down

0 comments on commit a8be062

Please sign in to comment.