Skip to content

Commit 3320dc9

Browse files
committed
readme
1 parent de20b2a commit 3320dc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lightweight and powerful task load balancing for php
1313
# Install
1414

1515
```php
16-
composer require 'toplan/task-balancer:~0.2.3'
16+
composer require 'toplan/task-balancer:~0.3.0'
1717
```
1818

1919
# Usage
@@ -26,11 +26,11 @@ Balancer::task('task1', function($task){
2626
$task->driver('driver_1 100 backup', function($driver, $data){
2727
//do something here
2828
...
29-
//set whether run success/failed at last
29+
//set whether run success/failure at last
3030
if ($success) {
3131
$driver->success();
3232
} else {
33-
$driver->failed();
33+
$driver->failure();
3434
}
3535
//return some data you need
3636
return 'some data here';

0 commit comments

Comments
 (0)