This commit is contained in:
2021-04-27 19:10:36 +08:00
parent 2209997504
commit 0485a1d95f
3 changed files with 0 additions and 40 deletions
-11
View File
@@ -102,7 +102,6 @@ class Redis extends Pool
}
$this->push($coroutineName, Context::getContext($coroutineName));
$this->remove($coroutineName);
$this->lastTime = time();
}
@@ -117,20 +116,10 @@ class Redis extends Pool
$coroutineName = $this->name('redis', 'redis:' . $name, $isMaster);
if (Context::hasContext($coroutineName)) {
$this->decrement($coroutineName);
$this->remove($coroutineName);
}
$this->flush(0);
}
/**
* @param $coroutineName
*/
public function remove(string $coroutineName)
{
Context::remove($coroutineName);
}
/**
* @param string $name
* @param mixed $client