Skip to content
Snippets Groups Projects
Unverified Commit 292d7bd3 authored by bgallois's avatar bgallois
Browse files

review fix

parent 7d19364a
No related branches found
No related tags found
1 merge request!290Fix #262 distance oracle pool index
Pipeline #38968 passed
...@@ -173,16 +173,10 @@ pub async fn run(client: &api::Client, settings: &Settings) { ...@@ -173,16 +173,10 @@ pub async fn run(client: &api::Client, settings: &Settings) {
.filter_map(|entry| { .filter_map(|entry| {
entry entry
.file_name() .file_name()
.into_string() .to_str()
.ok()
.and_then(|name| { .and_then(|name| {
name.split('-') name.split('-').last()?.parse::<u32>().ok().filter(|&pool| {
.last()? pool != current_period_index && pool != current_period_index + 1
.parse::<isize>()
.ok()
.filter(|&pool| {
pool != current_period_index as isize
&& pool != (current_period_index + 1) as isize
}) })
}) })
.map(|_| entry.path()) .map(|_| entry.path())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment