Modify the constructor of the DbClientImpl class

This commit is contained in:
an-tao 2019-01-09 14:47:07 +08:00
parent e1b873ba01
commit 08300f93c2
1 changed files with 1 additions and 1 deletions

View File

@ -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;