Skip to content

Commit

Permalink
chore: report a translate error to errChan to make it observed correc…
Browse files Browse the repository at this point in the history
…tly (#3827)

Signed-off-by: Kensei Nakada <[email protected]>
  • Loading branch information
sanposhiho authored Jul 12, 2024
1 parent 4260d58 commit 5a20e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/globalratelimit/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ func (r *Runner) subscribeAndTranslate(ctx context.Context) {
// Translate to ratelimit xDS Config.
rvt, err := r.translate(update.Value)
if err != nil {
r.Logger.Error(err, err.Error())
r.Logger.Error(err, "failed to translate an updated xds-ir to ratelimit xDS Config")
errChan <- err
}

// Update ratelimit xDS config cache.
Expand Down

0 comments on commit 5a20e57

Please sign in to comment.