Commit ee5177b7 authored by Shervin Nourbakhsh's avatar Shervin Nourbakhsh
Browse files

define default timeout as constexpr

parent a687b5a9
......@@ -31,6 +31,7 @@
using namespace std;
namespace cameo {
constexpr int defaultTimeout = 10000;
void Server::initServer(const Endpoint& endpoint, int timeoutMs) {
......@@ -117,7 +118,7 @@ int Server::getAvailableTimeout() const {
return timeout;
}
else {
return 10000;
return defaultTimeout;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment