Skip to content

Commit 634016e

Browse files
fix: use put instead of get_or_insert in the LRU to properly update the items ordering
1 parent 4967648 commit 634016e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tycho-integration-test/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async fn process_update(
265265
.write()
266266
.map_err(|e| miette!("Failed to acquire write lock on protocol pairs: {e}"))?;
267267
for (id, comp) in update.update.new_pairs.iter() {
268-
pairs.get_or_insert(id.clone(), || comp.clone());
268+
pairs.put(id.clone(), comp.clone());
269269
}
270270
}
271271
// Record block processing latency

0 commit comments

Comments
 (0)