mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
rename len variable
This commit is contained in:
parent
e51c1dc7b1
commit
8a3d05fa43
1 changed files with 3 additions and 3 deletions
|
|
@ -185,11 +185,11 @@ impl TorrentMaps {
|
||||||
let mut f = File::open(path)?;
|
let mut f = File::open(path)?;
|
||||||
loop {
|
loop {
|
||||||
let mut b = vec![0; L];
|
let mut b = vec![0; L];
|
||||||
let n = f.read(&mut b)?;
|
let l = f.read(&mut b)?;
|
||||||
if n != L {
|
if l != L {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if info_hashes.iter().any(|i| i.0 != b[..n]) {
|
if info_hashes.iter().any(|i| i.0 != b[..l]) {
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
t += 1
|
t += 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue