mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
update comment
This commit is contained in:
parent
5e2dafb898
commit
7306a29d1e
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ fn filter_list(value: Option<Vec<(String, u64)>>) -> Option<Vec<(String, u64)>>
|
|||
value.map(|f| f.into_iter().map(|(n, l)| (filter(n), l)).collect())
|
||||
}
|
||||
|
||||
/// Crop long values (prevents unexpected memory pool usage)
|
||||
/// Strip tags and bom chars, crop long strings (prevents memory pool overload)
|
||||
fn filter(value: String) -> String {
|
||||
const C: usize = 125; // + 3 for `...` offset, 128 chars max @TODO optional
|
||||
let s = value._strip_bom()._strip_tags();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue