Skip to content

Commit

Permalink
WorkerLimiterLock->unlock() 调整为使用 evalEx()
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jan 10, 2019
1 parent b7a2f25 commit 1682be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WorkerLimiterLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function unlock($name, $workerId, $poolName = null)
$numKeys = 1;
return PoolManager::use($poolName ?? RedisManager::getDefaultPoolName(), function($resource, RedisHandler $redis) use($args, $numKeys){
$redis->clearLastError();
$result = $redis->eval(<<<SCRIPT
$result = $redis->evalEx(<<<SCRIPT
local name = KEYS[1]
local id = ARGV[1]
local timeoutKey = name .. ':timeout'
Expand Down

0 comments on commit 1682be1

Please sign in to comment.