Skip to content

Commit f79eff7

Browse files
authored
Merge pull request #2 from rtckit/v2.1.0
v2.1.0
2 parents de05494 + 24aeb33 commit f79eff7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Once [installed](#installation), you can incorporate Redlock in your projects by
1414

1515
```php
1616
/* Instantiate prerequisites */
17-
$factory = new \Clue\React\Redis\Factory(\React\EventLoop\Loop::get());
17+
$factory = new \Clue\React\Redis\Factory();
1818
$client = $factory->createLazyClient('127.0.0.1');
1919

2020
/* Instantiate our lock custodian */

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rtckit/react-redlock",
33
"description": "Asynchronous distributed locks with Redis and ReactPHP",
4-
"version": "2.0.0",
4+
"version": "2.1.0",
55
"type": "library",
66
"keywords": [
77
"lock",
@@ -24,7 +24,7 @@
2424
},
2525
"require": {
2626
"php": ">=7.2",
27-
"clue/redis-react": "^2.4",
27+
"clue/redis-react": "^2.5",
2828
"react/event-loop": "^1.2"
2929
},
3030
"require-dev": {

examples/01-basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
/* Instantiate prerequisites */
26-
$factory = new RedisFactory(Loop::get());
26+
$factory = new RedisFactory();
2727
$client = $factory->createLazyClient($host);
2828

2929
/* Instantiate our lock custodian */

examples/02-spin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
/* Instantiate prerequisites */
25-
$factory = new RedisFactory(Loop::get());
25+
$factory = new RedisFactory();
2626
$client = $factory->createLazyClient($host);
2727

2828
/* Instantiate our lock custodian */

0 commit comments

Comments
 (0)