Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
polaris committed Jan 3, 2020
1 parent 66d1d0c commit 7515c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lock/Lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Jcsp\Cache\Lock;

use Jcsp\Cache\Exception\LockTimeoutException;
use Jcsp\Core\Helper\Str;
use Swoft\Stdlib\Helper\StringHelper;

abstract class Lock implements LockContract
{
Expand Down Expand Up @@ -37,7 +37,7 @@ abstract class Lock implements LockContract
public function reset($name, $seconds, $owner):void
{
if ($owner === '') {
$owner = Str::random();
$owner = StringHelper::random();
}

$this->name = $name;
Expand Down

0 comments on commit 7515c93

Please sign in to comment.