Skip to content

Commit

Permalink
Merge pull request #3296 from autonomys/gateway-refactor-endpoints
Browse files Browse the repository at this point in the history
Add protocol to indexer endpoint CLI option
  • Loading branch information
teor2345 authored Dec 10, 2024
2 parents 6a6cfb6 + ec88627 commit c86df14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/subspace-gateway/src/commands/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub(crate) struct HttpCommandOptions {
#[clap(flatten)]
gateway_options: GatewayOptions,

#[arg(long, default_value = "127.0.0.1:3000")]
#[arg(long, default_value = "http://127.0.0.1:3000")]
indexer_endpoint: String,

#[arg(long, default_value = "127.0.0.1:8080")]
Expand Down
2 changes: 1 addition & 1 deletion crates/subspace-gateway/src/commands/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ where
/// Requests an object mapping with `hash` from the indexer service.
async fn request_object_mapping(endpoint: &str, hash: Blake3Hash) -> anyhow::Result<ObjectMapping> {
let client = reqwest::Client::new();
let object_mappings_url = format!("http://{}/objects/{}", endpoint, hex::encode(hash));
let object_mappings_url = format!("{}/objects/{}", endpoint, hex::encode(hash));

debug!(?hash, ?object_mappings_url, "Requesting object mapping...");

Expand Down

0 comments on commit c86df14

Please sign in to comment.