Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: memory leak from
warnOnce()
(#73483)
The `warnOnce()` function is used to warn only once time, however this means we might be storing every possible message in memory forever (aka memory leak) since it can grow unbounded. This PR changes the behavior to only store only 10KB in a Least Recently Used (LRU) cache. The tradeoff here is that you might see the same warning twice if you have a lot of unique warnings.
- Loading branch information