Skip to content

Commit e5885a3

Browse files
committed
some asserts
1 parent 60ba0f4 commit e5885a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RoadRunnerStore.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function exists(Key $key): bool
6161
public function putOffExpiration(Key $key, float $ttl): void
6262
{
6363
\assert($key->hasState(__CLASS__));
64+
\assert($ttl > 0);
6465
if (false === $this->rrLock->updateTTL((string) $key, $key->getState(__CLASS__), $ttl)) {
6566
throw new LockConflictedException('RoadRunner. Failed to update lock ttl');
6667
}

0 commit comments

Comments
 (0)