Modify the constructor of the DbClientImpl class
This commit is contained in:
parent
e1b873ba01
commit
08300f93c2
|
@ -44,7 +44,7 @@ using namespace drogon::orm;
|
|||
DbClientImpl::DbClientImpl(const std::string &connInfo, const size_t connNum, ClientType type)
|
||||
: _connInfo(connInfo),
|
||||
_connectNum(connNum),
|
||||
_loops(connNum / 10 > 0 ? (connNum / 10 < drogon::app().getThreadNum() ? connNum / 10 : drogon::app().getThreadNum()) : 1)
|
||||
_loops(connNum / 100 > 0 ? connNum / 100 : 1)
|
||||
{
|
||||
_type = type;
|
||||
LOG_TRACE << "type=" << (int)type;
|
||||
|
|
Loading…
Reference in New Issue