Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

refactor: Remove redundant rate limit in PublishResources#254

Merged
aojea merged 1 commit into
google:mainfrom
gauravkghildiyal:remove-duplicate-ratelimit
Oct 12, 2025
Merged

refactor: Remove redundant rate limit in PublishResources#254
aojea merged 1 commit into
google:mainfrom
gauravkghildiyal:remove-duplicate-ratelimit

Conversation

@gauravkghildiyal
Copy link
Copy Markdown
Member

The device discovery process in pkg/inventory/db.go (producer) uses a rate limiter to control how frequently it scans for hardware changes and reports them as notifications (to the consumer).

err := db.rateLimiter.Wait(ctx)
This effectively rate-limits the entire resource publishing pipeline at its source.

At the moment, there is no need for these two to have separate individual rate limits.

@aojea
Copy link
Copy Markdown
Contributor

aojea commented Oct 12, 2025

yep

@aojea aojea merged commit b090d91 into google:main Oct 12, 2025
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants