This commit is contained in:
2020-09-17 14:04:22 +08:00
parent 6f8e024fae
commit 28669399b5
+1 -10
View File
@@ -154,15 +154,6 @@ class Connection extends Pool
} }
} }
/**
* @param $coroutineId
* @param $coroutineName
* @return array
*/
private function instanceTrance($coroutineId, $coroutineName)
{
return [$coroutineId, $coroutineName];
}
/** /**
* @param $name * @param $name
@@ -171,7 +162,7 @@ class Connection extends Pool
*/ */
private function getIndex($name, $isMaster = false) private function getIndex($name, $isMaster = false)
{ {
return $this->instanceTrance(Coroutine::getCid(), $this->name($name, $isMaster)); return [Coroutine::getCid(), $this->name($name, $isMaster)];
} }
/** /**