Commaaa2
This commit is contained in:
@@ -34,9 +34,11 @@ class DynamoDbLock extends Lock
|
||||
*/
|
||||
public function acquire()
|
||||
{
|
||||
return $this->dynamo->add(
|
||||
$this->name, $this->owner, $this->seconds
|
||||
);
|
||||
if ($this->seconds > 0) {
|
||||
return $this->dynamo->add($this->name, $this->owner, $this->seconds);
|
||||
} else {
|
||||
return $this->dynamo->add($this->name, $this->owner, 86400);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user