Skip to content

Commit

Permalink
Fix Rpc Url Parsing (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedleggett authored Jan 17, 2024
1 parent 7dcec75 commit 42b7914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rpc/src/load_balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ impl LoadBalancer {
.iter()
.map(|(_, websocket_url)| {
let ws_url_no_token = websocket_url
.split('?')
.next()
.split('/')
.nth(2)
.unwrap_or_default()
.to_string();
let exit = exit.clone();
Expand Down
2 changes: 0 additions & 2 deletions transaction-relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ struct Args {
long,
env,
value_delimiter = ' ',
required = true,
default_value = "http://127.0.0.1:8899"
)]
rpc_servers: Vec<String>,
Expand All @@ -111,7 +110,6 @@ struct Args {
long,
env,
value_delimiter = ' ',
required = true,
default_value = "ws://127.0.0.1:8900"
)]
websocket_servers: Vec<String>,
Expand Down

0 comments on commit 42b7914

Please sign in to comment.