Skip to content

Commit 94c7818

Browse files
authored
Report min_pool_size correctly (#471)
1 parent a8c81e5 commit 94c7818

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/admin.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,17 @@ where
308308
let paused = pool.paused();
309309

310310
res.put(data_row(&vec![
311-
address.name(), // name
312-
address.host.to_string(), // host
313-
address.port.to_string(), // port
314-
database_name.to_string(), // database
315-
pool_config.user.username.to_string(), // force_user
316-
pool_config.user.pool_size.to_string(), // pool_size
317-
"0".to_string(), // min_pool_size
318-
"0".to_string(), // reserve_pool
319-
pool_config.pool_mode.to_string(), // pool_mode
320-
pool_config.user.pool_size.to_string(), // max_connections
321-
pool_state.connections.to_string(), // current_connections
311+
address.name(), // name
312+
address.host.to_string(), // host
313+
address.port.to_string(), // port
314+
database_name.to_string(), // database
315+
pool_config.user.username.to_string(), // force_user
316+
pool_config.user.pool_size.to_string(), // pool_size
317+
pool_config.user.min_pool_size.unwrap_or(0).to_string(), // min_pool_size
318+
"0".to_string(), // reserve_pool
319+
pool_config.pool_mode.to_string(), // pool_mode
320+
pool_config.user.pool_size.to_string(), // max_connections
321+
pool_state.connections.to_string(), // current_connections
322322
match paused {
323323
// paused
324324
true => "1".to_string(),

0 commit comments

Comments
 (0)