Skip to content

Commit

Permalink
refactor: re-expose scheme from client (#541)
Browse files Browse the repository at this point in the history
3eb745e made many client fields
private. It exposed methods to get the port and host, but not the
scheme. We are depending on the ability to fetch the scheme in
vectordotdev/vector and so are currently blocked from upgrading.

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored Dec 18, 2024
1 parent 73ab090 commit e89c370
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ impl APIClient {
self.port
}

pub fn scheme(&self) -> &str {
self.scheme.as_str()
}

async fn build_client(&mut self, name: Option<String>) -> Result<()> {
let ua = match name {
Some(n) => n,
Expand Down

0 comments on commit e89c370

Please sign in to comment.