Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
a4b4c689
Commit
a4b4c689
authored
Feb 02, 2021
by
Ivan Vilata-i-Balaguer
Browse files
Turn some values into static constants.
parent
a1ec6e8e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/upnp.h
View file @
a4b4c689
...
...
@@ -60,11 +60,10 @@ private:
mapping_disabled
();
});
// TODO: static const
auto
lease_duration
=
minutes
(
3
);
auto
success_wait_time
=
lease_duration
-
seconds
(
10
);
auto
failure_wait_time
=
minutes
(
1
);
auto
recent_margin
=
seconds
(
10
);
// max RPC round-trip time
static
const
auto
lease_duration
=
minutes
(
3
);
static
const
auto
success_wait_time
=
lease_duration
-
seconds
(
10
);
static
const
auto
failure_wait_time
=
minutes
(
1
);
static
const
auto
recent_margin
=
seconds
(
10
);
// max RPC round-trip time
auto
mapping_desc
=
(
boost
::
format
(
"Ouinet-%08x"
)
%
_random_id
).
str
();
...
...
Write
Preview
Supports
Markdown
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