We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d6ef8c commit d0d2e6bCopy full SHA for d0d2e6b
src/auth.rs
@@ -39,7 +39,7 @@ pub fn rand_alphanumeric(len: usize) -> String {
39
let chars: String = std::iter::repeat(())
40
.map(|()| rng.sample(rand::distributions::Alphanumeric))
41
.map(char::from)
42
- .take(7)
+ .take(len)
43
.collect();
44
45
chars
src/pool.rs
@@ -508,7 +508,7 @@ impl ConnectionPool {
508
// before setting it globally.
509
// Do this async and somewhere else, we don't have to wait here.
510
if config.general.validate_config {
511
- let mut validate_pool = pool.clone();
+ let validate_pool = pool.clone();
512
tokio::task::spawn(async move {
513
let _ = validate_pool.validate().await;
514
});
0 commit comments