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

define default timeout as constexpr

parent a687b5a9
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
using namespace std; using namespace std;
namespace cameo { namespace cameo {
constexpr int defaultTimeout = 10000;
void Server::initServer(const Endpoint& endpoint, int timeoutMs) { void Server::initServer(const Endpoint& endpoint, int timeoutMs) {
Services::init(); Services::init();
...@@ -117,7 +118,7 @@ int Server::getAvailableTimeout() const { ...@@ -117,7 +118,7 @@ int Server::getAvailableTimeout() const {
return timeout; return timeout;
} }
else { 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