Skip to content

Commit

Permalink
Build GuacClient with provided reqwest::Client to manage TLS with Cli…
Browse files Browse the repository at this point in the history
…entConfig

Signed-off-by: mrizzi <[email protected]>
  • Loading branch information
mrizzi committed May 15, 2024
1 parent 8b9f5f8 commit 99e7f44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions collector/osv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ impl AppState {
P: TokenProvider + Clone + 'static,
{
Self {
v11y_client: v11y_client::V11yClient::new(client, v11y_url, provider),
guac_client: GuacClient::new(guac_url.as_str()),
v11y_client: v11y_client::V11yClient::new(client.clone(), v11y_url, provider),
guac_client: GuacClient::with_client(guac_url.to_string(), client),
osv: OsvClient::new(),
}
}
Expand Down
4 changes: 2 additions & 2 deletions collector/snyk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ impl AppState {
P: TokenProvider + Clone + 'static,
{
Self {
v11y_client: v11y_client::V11yClient::new(client, v11y_url, provider),
guac_client: GuacClient::new(guac_url.as_str()),
v11y_client: v11y_client::V11yClient::new(client.clone(), v11y_url, provider),
guac_client: GuacClient::with_client(guac_url.to_string(), client),
snyk_org_id,
snyk_token,
}
Expand Down

0 comments on commit 99e7f44

Please sign in to comment.