mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-03-30 17:16:05 +00:00
don't calculate key's base64 if not used
This commit is contained in:
@@ -951,12 +951,13 @@ namespace data
|
||||
LogPrint (eLogError, "NetDb: DatabaseLookup for zero ident. Ignored");
|
||||
return;
|
||||
}
|
||||
auto key = i2p::data::ByteStreamToBase64 (buf, 32);
|
||||
std::string key;
|
||||
if (CheckLogLevel (eLogInfo))
|
||||
key = i2p::data::ByteStreamToBase64 (buf, 32);
|
||||
|
||||
IdentHash replyIdent(buf + 32);
|
||||
uint8_t flag = buf[64];
|
||||
|
||||
|
||||
LogPrint (eLogDebug, "NetDb: DatabaseLookup for ", key, " received flags=", (int)flag);
|
||||
uint8_t lookupType = flag & DATABASE_LOOKUP_TYPE_FLAGS_MASK;
|
||||
const uint8_t * excluded = buf + 65;
|
||||
|
||||
Reference in New Issue
Block a user