Skip to content

Commit 8bb427e

Browse files
committed
f fix comment 2
1 parent 3c12b4b commit 8bb427e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning-block-sync/src/http.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ impl HttpClient {
249249
} }
250250

251251
// Read and parse status line
252-
// Note that we first reset the read timeout to give us extra time in case the responding
253-
// node is blocked waiting on some slow I/O operation such as UTXO cache flushing.
252+
// Note that we allow retrying a few times to reach TCP_STREAM_RESPONSE_TIMEOUT.
254253
let status_line = read_line!(TCP_STREAM_RESPONSE_TIMEOUT.as_secs() / TCP_STREAM_TIMEOUT.as_secs())
255254
.ok_or(std::io::Error::new(std::io::ErrorKind::UnexpectedEof, "no status line"))?;
256255
let status = HttpStatus::parse(&status_line)?;

0 commit comments

Comments
 (0)