Adjust search limits

This commit is contained in:
Jeremy Soller 2024-10-09 19:01:51 -06:00
parent a1932b3607
commit fd93917c9f
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -76,8 +76,8 @@ use uzers::{get_group_by_gid, get_user_by_uid};
pub const DOUBLE_CLICK_DURATION: Duration = Duration::from_millis(500);
pub const HOVER_DURATION: Duration = Duration::from_millis(1600);
//TODO: best limit for search items
const MAX_SEARCH_LATENCY: Duration = Duration::from_millis(100);
const MAX_SEARCH_RESULTS: usize = 1000;
const MAX_SEARCH_LATENCY: Duration = Duration::from_millis(20);
const MAX_SEARCH_RESULTS: usize = 200;
//TODO: adjust for locales?
const DATE_TIME_FORMAT: &'static str = "%b %-d, %-Y, %-I:%M %p";