From 08300f93c252dfa9e3f0627300fcc68da0edf83d Mon Sep 17 00:00:00 2001 From: an-tao <20741618@qq.com> Date: Wed, 9 Jan 2019 14:47:07 +0800 Subject: [PATCH] Modify the constructor of the DbClientImpl class --- orm_lib/src/DbClientImpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm_lib/src/DbClientImpl.cc b/orm_lib/src/DbClientImpl.cc index 07a72a51..2213f7e9 100644 --- a/orm_lib/src/DbClientImpl.cc +++ b/orm_lib/src/DbClientImpl.cc @@ -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;