Skip to content

pkg/settings/limits: log cleanup failure for missing tenant#1890

Merged
jmank88 merged 1 commit intomainfrom
limits-cleanup-logs
Mar 11, 2026
Merged

pkg/settings/limits: log cleanup failure for missing tenant#1890
jmank88 merged 1 commit intomainfrom
limits-cleanup-logs

Conversation

@jmank88
Copy link
Contributor

@jmank88 jmank88 commented Mar 11, 2026

Follow up from #1889 to add more logging

@jmank88 jmank88 requested a review from a team as a code owner March 11, 2026 12:36
@jmank88 jmank88 requested review from mchain0 and pavel-raykov March 11, 2026 12:37
@github-actions
Copy link

👋 jmank88, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

func (b *boundLimiter[N]) cleanup(ctx context.Context) {
tenant := b.scope.Value(ctx)
if tenant == "" {
b.lggr.Warnw("Unable to cleanup scoped bound limiter due to missing tenant", "scope", b.scope)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mchain0 warn level or error?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imho warn fine

@github-actions
Copy link

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-common

View full report

@jmank88 jmank88 added this pull request to the merge queue Mar 11, 2026
Merged via the queue into main with commit 6b00be9 Mar 11, 2026
30 of 31 checks passed
@jmank88 jmank88 deleted the limits-cleanup-logs branch March 11, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants