diff --git a/src/service/rate_limiting/mod.rs b/src/service/rate_limiting/mod.rs index ca2995ab..d17fa4dd 100644 --- a/src/service/rate_limiting/mod.rs +++ b/src/service/rate_limiting/mod.rs @@ -29,13 +29,7 @@ impl From for Restriction { ), ] .into_iter() - .find(|(other, _)| { - metadata - .history - .stable_paths() - .zip(other.history.stable_paths()) - .all(|(a, b)| a == b) - }) + .find(|(other, _)| metadata.history.all_paths().eq(other.history.all_paths())) .map(|(_, restriction)| restriction) .unwrap_or_default() }