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

Commit

Permalink
update some logic, modify some class imports
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Feb 7, 2018
1 parent a53170b commit dfd1bd0
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 712 deletions.
4 changes: 2 additions & 2 deletions examples/co_mysql_pool_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function debug($msg, array $data = [])
}


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

]);
$svr->start();
$svr->start();
4 changes: 2 additions & 2 deletions examples/co_mysql_pool_test2.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function debug($msg, array $data = [])
}


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

]);
$svr->start();
$svr->start();
2 changes: 1 addition & 1 deletion lib/sws/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Inhere\Library\Helpers\PhpHelper;
use Inhere\Library\Traits\EventTrait;
use Inhere\Library\Traits\OptionsTrait;
use Inhere\Server\Helpers\Psr7Http;
use Inhere\Server\Helper\Psr7Http;
use Monolog\Logger;
use Psr\Http\Message\ResponseInterface;
use Swoole\Http\Response as SwResponse;
Expand Down
6 changes: 3 additions & 3 deletions lib/sws/Async/AsyncMysqlPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

namespace Sws\Async;

use Inhere\Pool\Swoole\CoroSuspendPool;
use Inhere\Pool\Swoole\CorSuspendPool;
use Swoole\MySQL;

/**
* Class AsyncMysqlPool
* @package Sws\Components
*/
class AsyncMysqlPool extends CoroSuspendPool
class AsyncMysqlPool extends CorSuspendPool
{
/**
* @var array
Expand Down Expand Up @@ -89,4 +89,4 @@ public function setConfig(array $config)
{
$this->config = $config;
}
}
}
248 changes: 0 additions & 248 deletions lib/sws/Context/AbstractContext.php

This file was deleted.

63 changes: 0 additions & 63 deletions lib/sws/Context/ContextInterface.php

This file was deleted.

Loading

0 comments on commit dfd1bd0

Please sign in to comment.