From 925515091329c7b21285447ffa02a01cb65da995 Mon Sep 17 00:00:00 2001 From: Jason Shin Date: Fri, 26 Jul 2024 00:25:22 +1000 Subject: [PATCH] provide default when no connections provided by file config --- src/common/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/config.rs b/src/common/config.rs index 649b92b5..3106223a 100644 --- a/src/common/config.rs +++ b/src/common/config.rs @@ -266,6 +266,7 @@ impl Config { let pool_size = default_config .map(|x| x.pool_size) + .or_else(|| Some(default_pool_size())) .unwrap(); DbConnectionConfig {