GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 4962128b authored by George Kadianakis's avatar George Kadianakis

dirmgr: Handle another error in download_mds().

Co-authored-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent a02de201
Pipeline #2056 passed with stage
in 5 minutes and 22 seconds
......@@ -872,16 +872,20 @@ async fn download_mds(
for annot in
MicrodescReader::new(&text, AllowAnnotations::AnnotationsNotAllowed)
{
if let Ok(anno) = annot {
let txt = anno.within(&text).unwrap().to_string(); //XXXX ugly copy
let md = anno.into_microdesc();
if want.contains(md.digest()) {
my_new_mds.push((txt, md))
} else {
warn!("Received md we did not ask for: {:?}", md.digest())
match annot {
Ok(anno) => {
let txt = anno.within(&text).unwrap().to_string(); //XXXX ugly copy
let md = anno.into_microdesc();
if want.contains(md.digest()) {
my_new_mds.push((txt, md))
} else {
warn!("Received md we did not ask for: {:?}", md.digest())
}
}
Err(err) => {
warn!("Problem with annotated md: {:?}", err)
}
}
// XXXX-A1 log error
}
}
......
Markdown is supported
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