Skip to content

Commit

Permalink
fix(graph-gateway): use format display to construct the indexer url (#…
Browse files Browse the repository at this point in the history
…886)

Signed-off-by: Lorenzo Delgado <[email protected]>
  • Loading branch information
LNSD authored Jul 16, 2024
1 parent 51a6399 commit 60f4659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ semver = { version = "1.0", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0.116", features = ["raw_value"] }
serde_with = "3.8.1"
thegraph-core = "0.5.0"
thegraph-core = "0.5.6"
thegraph-graphql-http = "0.2.1"
thiserror = "1.0.59"
tokio = { version = "1.38.0", features = [
Expand Down
2 changes: 1 addition & 1 deletion graph-gateway/src/indexer_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl IndexerClient {
query: &str,
) -> Result<IndexerResponse, IndexerError> {
let url = url
.join(&format!("subgraphs/id/{:?}", deployment))
.join(&format!("subgraphs/id/{}", deployment))
.map_err(|_| Unavailable(UnavailableReason::Internal("bad indexer url")))?;

let result = self
Expand Down

0 comments on commit 60f4659

Please sign in to comment.