Skip to content

Commit

Permalink
DatasetEndpoints::rest(): fix query URL
Browse files Browse the repository at this point in the history
  • Loading branch information
s373r committed Apr 15, 2024
1 parent fa2c2d8 commit e42481b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/adapter/graphql/src/queries/datasets/dataset_endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,17 @@ impl<'a> DatasetEndpoints<'a> {

#[allow(clippy::unused_async)]
async fn rest(&self) -> Result<RestProtocolDesc> {
let base_url = format!(
let dataset_base_url = format!(
"{}{}",
self.config.protocols.base_url_rest,
// to respect both kinds of workspaces: single-tenant & multi-tenant
self.dataset_handle.alias
);

let tail_url = format!("{base_url}/tail?limit=10");
let push_url = format!("{base_url}/ingest");

let tail_url = format!("{dataset_base_url}/tail?limit=10");
let push_url = format!("{dataset_base_url}/ingest");
let query_url = format!(
"{}graphql?query=query {{%0A%20 apiVersion%0A}}%0A",
"{}query?query=SELECT 42 as answer",
self.config.protocols.base_url_rest
);

Expand Down

0 comments on commit e42481b

Please sign in to comment.