Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
ee5177b7
Commit
ee5177b7
authored
Dec 14, 2020
by
Shervin Nourbakhsh
Browse files
define default timeout as constexpr
parent
a687b5a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Server.cpp
View file @
ee5177b7
...
...
@@ -31,7 +31,8 @@
using
namespace
std
;
namespace
cameo
{
constexpr
int
defaultTimeout
=
10000
;
void
Server
::
initServer
(
const
Endpoint
&
endpoint
,
int
timeoutMs
)
{
Services
::
init
();
...
...
@@ -117,7 +118,7 @@ int Server::getAvailableTimeout() const {
return
timeout
;
}
else
{
return
10000
;
return
defaultTimeout
;
}
}
...
...
Shervin Nourbakhsh
@nourbakhsh
mentioned in commit
686608fd
·
Dec 17, 2020
mentioned in commit
686608fd
mentioned in commit 686608fd20d23c539a0c30f43a01af59ee39c133
Toggle commit list
Shervin Nourbakhsh
@nourbakhsh
mentioned in commit
46e44691
·
Apr 23, 2021
mentioned in commit
46e44691
mentioned in commit 46e44691a03808a23a464818487b0dd014a9c57e
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment