Skip to content

Commit

Permalink
fix hyper-transport url
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolay-komarevskiy committed Nov 13, 2023
1 parent 3cb1c46 commit f964a46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ic-agent/src/agent/http_transport/hyper_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ where
) -> AgentFuture<()> {
Box::pin(async move {
let url = format!(
"{}/canister/{effective_canister_id}/call",
"{}canister/{effective_canister_id}/call",
self.route_provider.route()?
);
self.request(Method::POST, url, Some(envelope)).await?;
Expand All @@ -226,7 +226,7 @@ where
) -> AgentFuture<Vec<u8>> {
Box::pin(async move {
let url = format!(
"{}/canister/{effective_canister_id}/read_state",
"{}canister/{effective_canister_id}/read_state",
self.route_provider.route()?
);
self.request(Method::POST, url, Some(envelope)).await
Expand All @@ -236,7 +236,7 @@ where
fn read_subnet_state(&self, subnet_id: Principal, envelope: Vec<u8>) -> AgentFuture<Vec<u8>> {
Box::pin(async move {
let url = format!(
"{}/subnet/{subnet_id}/read_state",
"{}subnet/{subnet_id}/read_state",
self.route_provider.route()?
);
self.request(Method::POST, url, Some(envelope)).await
Expand All @@ -246,7 +246,7 @@ where
fn query(&self, effective_canister_id: Principal, envelope: Vec<u8>) -> AgentFuture<Vec<u8>> {
Box::pin(async move {
let url = format!(
"{}/canister/{effective_canister_id}/query",
"{}canister/{effective_canister_id}/query",
self.route_provider.route()?
);
self.request(Method::POST, url, Some(envelope)).await
Expand All @@ -255,7 +255,7 @@ where

fn status(&self) -> AgentFuture<Vec<u8>> {
Box::pin(async move {
let url = format!("{}/status", self.route_provider.route()?);
let url = format!("{}status", self.route_provider.route()?);
self.request(Method::GET, url, None).await
})
}
Expand Down

0 comments on commit f964a46

Please sign in to comment.