diff --git a/collector/osv/src/lib.rs b/collector/osv/src/lib.rs index d565b88a7..b32a22274 100644 --- a/collector/osv/src/lib.rs +++ b/collector/osv/src/lib.rs @@ -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(), } } diff --git a/collector/snyk/src/lib.rs b/collector/snyk/src/lib.rs index dbceb078f..d6cf9cd5c 100644 --- a/collector/snyk/src/lib.rs +++ b/collector/snyk/src/lib.rs @@ -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, }