We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 050deb5 commit b3efadaCopy full SHA for b3efada
src/metrics/mod.rs
@@ -91,6 +91,11 @@ impl RecentlyAccessedReleases {
91
}
92
93
pub(crate) fn record(&self, krate: i32, version: i32, target: &str) {
94
+ if self.platforms.len() > 100_000 {
95
+ // Avoid filling the maps _too_ much, we should never get anywhere near this limit
96
+ return;
97
+ }
98
+
99
let now = Instant::now();
100
self.crates.insert(krate, now);
101
self.versions.insert(version, now);
0 commit comments