Skip to content

Commit

Permalink
fix(service): double-slash in subgraph query url (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets authored Jul 5, 2024
1 parent c60862f commit a0efd63
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions service/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ impl IndexerServiceImpl for SubgraphService {
deployment: DeploymentId,
request: Self::Request,
) -> Result<(Self::Request, Self::Response), Self::Error> {
let deployment_url = Url::parse(&format!(
"{}/subgraphs/id/{}",
&self.state.graph_node_query_base_url, deployment
))
.map_err(|_| SubgraphServiceError::InvalidDeployment(deployment))?;
let deployment_url = Url::parse(&self.state.graph_node_query_base_url)
.expect("Invalid `graph_node.query_url` in config")
.join(&format!("subgraphs/id/{deployment}"))
.map_err(|_| SubgraphServiceError::InvalidDeployment(deployment))?;

let response = self
.state
Expand Down

0 comments on commit a0efd63

Please sign in to comment.