Skip to content

Commit f69cbd1

Browse files
authored
Merge pull request #1 from roadrunner-php/init_commit
init_commit
2 parents 1e7276f + 68a8647 commit f69cbd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/RoadRunnerStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function putOffExpiration(Key $key, float $ttl): void
3737

3838
public function delete(Key $key): void
3939
{
40-
$this->rrLock->forceRelease((string) $key);
40+
$this->rrLock->release((string) $key, $this->processId);
4141
}
4242

4343
public function saveRead(Key $key): void

tests/RoadRunnerStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function testDelete(): void
4545
{
4646
$rrLock = $this->createMock(RrLock::class);
4747
$rrLock->expects(self::once())
48-
->method('forceRelease')
49-
->with('resource-name');
48+
->method('release')
49+
->with('resource-name', '*');
5050
$store = new RoadRunnerStore($rrLock);
5151
$store->delete(new Key('resource-name'));
5252
}

0 commit comments

Comments
 (0)