i2psnark: Cache length of metainfo

This commit is contained in:
zzz
2020-10-10 14:59:13 +00:00
parent 9e36fe090c
commit 98e5908557
3 changed files with 21 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ class MagnetState {
infohash = iHash;
if (meta != null) {
metainfo = meta;
initialize(meta.getInfoBytes().length);
initialize(meta.getInfoBytesLength());
complete = true;
}
}