From b1ac46f14fb4038584684a47d2b6204c0bcfc81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 24 Aug 2023 13:41:27 +0800 Subject: [PATCH] qqq --- Connection.php | 2 +- DatabasesProviders.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Connection.php b/Connection.php index df7667e..f7615de 100644 --- a/Connection.php +++ b/Connection.php @@ -53,7 +53,7 @@ class Connection extends Component public int $waite_time = 3; - public int $idle_time = 600; + public int $idle_time = 60; public array $pool = ['max' => 10, 'min' => 1]; diff --git a/DatabasesProviders.php b/DatabasesProviders.php index ddabb97..68ff1ef 100644 --- a/DatabasesProviders.php +++ b/DatabasesProviders.php @@ -64,7 +64,7 @@ class DatabasesProviders extends Providers 'tablePrefix' => $database['tablePrefix'], 'database' => $database['database'], 'connect_timeout' => $database['connect_timeout'] ?? 10, - 'idle_time' => $database['idle_time'] ?? 300, + 'idle_time' => $database['idle_time'] ?? 60, 'waite_time' => $database['waite_time'] ?? 3, 'pool' => $clientPool, 'attributes' => $database['attributes'] ?? [],