Skip to content

Commit ac17d00

Browse files
committed
📚 Updated README sample code
1 parent 2219af1 commit ac17d00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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($loop);
17+
$factory = new \Clue\React\Redis\Factory(\React\EventLoop\Loop::get());
1818
$client = $factory->createLazyClient('127.0.0.1');
1919

2020
/* Instantiate our lock custodian */

0 commit comments

Comments
 (0)