Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

Commit dfd1bd0

Browse files
committed
update some logic, modify some class imports
1 parent a53170b commit dfd1bd0

15 files changed

+14
-712
lines changed

examples/co_mysql_pool_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function debug($msg, array $data = [])
2020
}
2121

2222

23-
$pool = new \Sws\Coroutine\CoroMysqlPool([
23+
$pool = new \Sws\Coroutine\CorMysqlPool([
2424
'initSize' => 0,
2525
'maxSize' => 1,
2626
]);
@@ -40,4 +40,4 @@ function debug($msg, array $data = [])
4040
$svr->set([
4141

4242
]);
43-
$svr->start();
43+
$svr->start();

examples/co_mysql_pool_test2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function debug($msg, array $data = [])
2020
}
2121

2222

23-
$pool = new \Sws\Coroutine\CoroMysqlPool2([
23+
$pool = new \Sws\Coroutine\CorMysqlPool2([
2424
'initSize' => 0,
2525
'maxSize' => 1,
2626
]);
@@ -40,4 +40,4 @@ function debug($msg, array $data = [])
4040
$svr->set([
4141

4242
]);
43-
$svr->start();
43+
$svr->start();

lib/sws/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Inhere\Library\Helpers\PhpHelper;
1616
use Inhere\Library\Traits\EventTrait;
1717
use Inhere\Library\Traits\OptionsTrait;
18-
use Inhere\Server\Helpers\Psr7Http;
18+
use Inhere\Server\Helper\Psr7Http;
1919
use Monolog\Logger;
2020
use Psr\Http\Message\ResponseInterface;
2121
use Swoole\Http\Response as SwResponse;

lib/sws/Async/AsyncMysqlPool.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
namespace Sws\Async;
1010

11-
use Inhere\Pool\Swoole\CoroSuspendPool;
11+
use Inhere\Pool\Swoole\CorSuspendPool;
1212
use Swoole\MySQL;
1313

1414
/**
1515
* Class AsyncMysqlPool
1616
* @package Sws\Components
1717
*/
18-
class AsyncMysqlPool extends CoroSuspendPool
18+
class AsyncMysqlPool extends CorSuspendPool
1919
{
2020
/**
2121
* @var array
@@ -89,4 +89,4 @@ public function setConfig(array $config)
8989
{
9090
$this->config = $config;
9191
}
92-
}
92+
}

lib/sws/Context/AbstractContext.php

Lines changed: 0 additions & 248 deletions
This file was deleted.

lib/sws/Context/ContextInterface.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)