Skip to content

Commit 66e6d2c

Browse files
committed
f - Ignore errors in HTTP server instead of panic
1 parent 976381d commit 66e6d2c

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
@@ -550,8 +550,8 @@ pub(crate) mod client_tests {
550550
if shutdown_signaled.load(std::sync::atomic::Ordering::SeqCst) {
551551
return;
552552
} else {
553-
stream.write(chunk).unwrap();
554-
stream.flush().unwrap();
553+
if let Err(_) = stream.write(chunk) { break; }
554+
if let Err(_) = stream.flush() { break; }
555555
}
556556
}
557557
}

0 commit comments

Comments
 (0)