Skip to content

Commit 13465f8

Browse files
committed
f - Ignore errors in HTTP server instead of panic
1 parent 460fd6f commit 13465f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-block-sync/src/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ pub(crate) mod client_tests {
552552
if shutdown_signaled.load(std::sync::atomic::Ordering::SeqCst) {
553553
return;
554554
} else {
555-
stream.write(chunk).unwrap();
556-
stream.flush().unwrap();
555+
if let Err(_) = stream.write(chunk) { break; }
556+
if let Err(_) = stream.flush() { break; }
557557
}
558558
}
559559
}

0 commit comments

Comments
 (0)