Skip to content

Commit

Permalink
Dedup inactive_mnt_list vec
Browse files Browse the repository at this point in the history
  • Loading branch information
Kioubit committed Sep 27, 2024
1 parent ed16046 commit ee11d30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/mrt_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ pub fn output(registry_root: String, json_file: String, max_inactive_secs: u64)
}


inactive_mnt_list.sort_unstable();
inactive_mnt_list.dedup();

let output = inactive_mnt_list.join(",");
Ok(output)
}
Expand Down

0 comments on commit ee11d30

Please sign in to comment.