Skip to content

Commit 46412ea

Browse files
committed
f fix comment 2
1 parent 6a4b043 commit 46412ea

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
@@ -251,8 +251,7 @@ impl HttpClient {
251251
} }
252252

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

0 commit comments

Comments
 (0)