We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ae626 commit 2e30240Copy full SHA for 2e30240
stackslib/src/net/api/postblock_proposal.rs
@@ -192,10 +192,11 @@ fn get_test_delay() -> Option<u64> {
192
193
#[cfg(any(test, feature = "testing"))]
194
fn inject_validation_delay() {
195
- if let Some(delay) = get_test_delay() {
196
- warn!("Sleeping for {} seconds to simulate slow processing", delay);
197
- thread::sleep(Duration::from_secs(delay));
198
- }
+ let Some(delay) = get_test_delay() else {
+ return;
+ };
+ warn!("Sleeping for {} seconds to simulate slow processing", delay);
199
+ thread::sleep(Duration::from_secs(delay));
200
}
201
202
/// Represents a block proposed to the `v3/block_proposal` endpoint for validation
0 commit comments