mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
remove extra note
This commit is contained in:
parent
0ac31fe69e
commit
058bc6a07c
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ fn filter_list(value: Option<Vec<(String, u64)>>) -> Option<Vec<(String, u64)>>
|
||||||
|
|
||||||
/// Crop long values (prevents unexpected memory pool usage)
|
/// Crop long values (prevents unexpected memory pool usage)
|
||||||
fn crop(value: String) -> String {
|
fn crop(value: String) -> String {
|
||||||
const C: usize = 125; // + 3 for `...` offset, 128 chars max (<255 bytes for ext4) @TODO optional
|
const C: usize = 125; // + 3 for `...` offset, 128 chars max @TODO optional
|
||||||
if value.chars().count() > C {
|
if value.chars().count() > C {
|
||||||
format!(
|
format!(
|
||||||
"{}...",
|
"{}...",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue