Skip to content

Commit 0d4db6d

Browse files
committed
Address feedback
1 parent 5084c4a commit 0d4db6d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bin/e2e-test-client/tests/integration_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use std::{
2020
time::Duration,
2121
};
2222
use tempfile::TempDir;
23-
// Used for writing assertions // Run programs
2423

2524
// Use Jemalloc
2625
#[global_allocator]

crates/client/src/client.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,14 @@ impl FuelClient {
413413
}
414414
let urls = urls
415415
.iter()
416-
.map(|url| Url::parse(url.as_ref()))
416+
.map(|url| {
417+
let reference = url.as_ref();
418+
if !reference.starts_with("http") {
419+
Url::parse(&format!("http://{reference}"))
420+
} else {
421+
Url::parse(reference)
422+
}
423+
})
417424
.collect::<Result<Vec<_>, _>>()?;
418425
Ok(Self {
419426
transport: FailoverTransport::new(urls)?,

0 commit comments

Comments
 (0)