Skip to content

Commit

Permalink
clientinfo: reduce length of client correlator
Browse files Browse the repository at this point in the history
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
  • Loading branch information
muirdm authored and facebook-github-bot committed Dec 11, 2024
1 parent 059c492 commit 8b9a294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eden/scm/lib/clientinfo/src/request_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl ClientRequestInfo {
} else {
thread_rng()
.sample_iter(Alphanumeric)
.take(16)
.take(8)
.map(char::from)
.collect()
}
Expand Down

0 comments on commit 8b9a294

Please sign in to comment.