Commit d1e1ac7c authored by Ivan Vilata-i-Balaguer's avatar 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
......@@ -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) {
......
......@@ -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
......
Supports Markdown
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