From 28669399b5fa981482f7e74df156ef5c394b35c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Sep 2020 14:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Connection.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index ac5f189f..d610db61 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -154,15 +154,6 @@ class Connection extends Pool } } - /** - * @param $coroutineId - * @param $coroutineName - * @return array - */ - private function instanceTrance($coroutineId, $coroutineName) - { - return [$coroutineId, $coroutineName]; - } /** * @param $name @@ -171,7 +162,7 @@ class Connection extends Pool */ private function getIndex($name, $isMaster = false) { - return $this->instanceTrance(Coroutine::getCid(), $this->name($name, $isMaster)); + return [Coroutine::getCid(), $this->name($name, $isMaster)]; } /**