Skip to content

Commit

Permalink
Optimized code.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Nov 9, 2019
1 parent d83e764 commit d35ce4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ before_script:
- composer config -g process-timeout 900 && composer update

script:
- composer analyse src/di src/json-rpc src/tracer src/metric src/redis src/nats
- composer analyse src/di src/json-rpc src/tracer src/metric src/redis src/nats src/db
- composer test -- --exclude-group NonCoroutine
- vendor/bin/phpunit --group NonCoroutine
2 changes: 1 addition & 1 deletion src/db/src/MySQLConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Hyperf\Pool\Pool;
use Psr\Container\ContainerInterface;
use Swoole\Coroutine\MySQL;
use Swoole\Coroutine\Mysql\Statement;
use Swoole\Coroutine\MySQL\Statement;

class MySQLConnection extends AbstractConnection
{
Expand Down
5 changes: 5 additions & 0 deletions src/db/src/Pool/PoolFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class PoolFactory
*/
protected $pools = [];

/**
* @var ContainerInterface
*/
protected $container;

public function __construct(ContainerInterface $container)
{
$this->container = $container;
Expand Down

0 comments on commit d35ce4f

Please sign in to comment.