We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8cf42d1 + 5d140a4 commit ec9cba3Copy full SHA for ec9cba3
1 file changed
rust/hyperstack-server/src/health.rs
@@ -39,11 +39,11 @@ impl SlotTracker {
39
pub async fn record_slot_hash(&self, slot: u64, slot_hash: String) {
40
let mut hashes = self.slot_hashes.write().await;
41
hashes.insert(slot, slot_hash);
42
-
+
43
// Prune old entries to prevent unbounded growth (keep last 10000 slots)
44
let slots_to_remove: Vec<u64> = hashes
45
.keys()
46
- .filter(|&&s| s < slot.saturating_sub(10000))
+ .filter(|&&s| s < slot.saturating_sub(1000))
47
.copied()
48
.collect();
49
for s in slots_to_remove {
0 commit comments