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
d1e1ac7c
Commit
d1e1ac7c
authored
Dec 16, 2020
by
Ivan Vilata-i-Balaguer
Browse files
Make funcs telling whether to log in cache client, announcer inline.
And remove one unused such function.
parent
d88a770a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cache/announcer.cpp
View file @
d1e1ac7c
...
...
@@ -61,7 +61,7 @@ struct Announcer::Loop {
,
entries
(
ex
)
{
}
static
bool
debug
()
{
return
logger
.
get_threshold
()
<=
DEBUG
;
}
inline
static
bool
debug
()
{
return
logger
.
get_threshold
()
<=
DEBUG
;
}
Entries
::
iterator
find_entry_by_key
(
const
Key
&
key
)
{
for
(
auto
i
=
entries
.
begin
();
i
!=
entries
.
end
();
++
i
)
{
...
...
src/cache/client.cpp
View file @
d1e1ac7c
...
...
@@ -97,8 +97,7 @@ struct Client::Impl {
std
::
unique_ptr
<
DhtGroups
>
_dht_groups
;
static
bool
log_debug
()
{
return
logger
.
get_threshold
()
<=
DEBUG
;
}
static
bool
log_info
()
{
return
logger
.
get_threshold
()
<=
INFO
;
}
inline
static
bool
log_debug
()
{
return
logger
.
get_threshold
()
<=
DEBUG
;
}
Impl
(
shared_ptr
<
bt
::
MainlineDht
>
dht_
,
util
::
Ed25519PublicKey
&
cache_pk
...
...
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