From 8b9a294c3a0e78693d270a8425077753f6e2a67e Mon Sep 17 00:00:00 2001 From: Muir Manders Date: Tue, 10 Dec 2024 17:26:55 -0800 Subject: [PATCH] clientinfo: reduce length of client correlator Summary: Length of 8 still gives 218,340,105,584,896 possible values, and will reduce space usage by 50%. Reviewed By: quark-zju Differential Revision: D67045388 fbshipit-source-id: a524ed603913c6be8c07c8e5ec34606bffb6a666 --- eden/scm/lib/clientinfo/src/request_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eden/scm/lib/clientinfo/src/request_info.rs b/eden/scm/lib/clientinfo/src/request_info.rs index 706eff767d4c1..c3d25486498bf 100644 --- a/eden/scm/lib/clientinfo/src/request_info.rs +++ b/eden/scm/lib/clientinfo/src/request_info.rs @@ -192,7 +192,7 @@ impl ClientRequestInfo { } else { thread_rng() .sample_iter(Alphanumeric) - .take(16) + .take(8) .map(char::from) .collect() }