diff --git a/vibi-dpu/src/bitbucket/prs.rs b/vibi-dpu/src/bitbucket/prs.rs index 68edab6d..78ea3bb6 100644 --- a/vibi-dpu/src/bitbucket/prs.rs +++ b/vibi-dpu/src/bitbucket/prs.rs @@ -4,7 +4,7 @@ use serde_json::Value; use std::collections::HashMap; use std::str; use std::env; -use crate::client::config::get_client; +use crate::bitbucket::config::get_client; use crate::utils::prInfo::PrInfo; use crate::db::prs::save_pr_info_to_db; diff --git a/vibi-dpu/src/bitbucket/reviewer.rs b/vibi-dpu/src/bitbucket/reviewer.rs index 7a24731d..505263ff 100644 --- a/vibi-dpu/src/bitbucket/reviewer.rs +++ b/vibi-dpu/src/bitbucket/reviewer.rs @@ -8,8 +8,7 @@ use crate::db::user::get_workspace_user_from_db; use crate::utils::review::Review; use crate::utils::user::BitbucketUser; -use super::{config::{bitbucket_base_url, prepare_headers}}; -use crate::client::config::get_client; +use super::config::{bitbucket_base_url, prepare_headers, get_client}; pub async fn add_reviewers(user_key: &str, review: &Review, access_token: &str) { let url = prepare_get_prinfo_url(review.repo_owner(), review.repo_name(), review.id()); diff --git a/vibi-dpu/src/client/config.rs b/vibi-dpu/src/client/config.rs deleted file mode 100644 index c442beb5..00000000 --- a/vibi-dpu/src/client/config.rs +++ /dev/null @@ -1,11 +0,0 @@ -use std::sync::Arc; -use once_cell::sync::Lazy; -use reqwest::Client; - -static CLIENT: Lazy> = Lazy::new(|| { - Arc::new(Client::new()) -}); - -pub fn get_client() -> Arc { - Arc::clone(&CLIENT) -} \ No newline at end of file diff --git a/vibi-dpu/src/client/mod.rs b/vibi-dpu/src/client/mod.rs deleted file mode 100644 index a1059337..00000000 --- a/vibi-dpu/src/client/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod config; \ No newline at end of file diff --git a/vibi-dpu/src/main.rs b/vibi-dpu/src/main.rs index aa7f1d94..665b5a75 100644 --- a/vibi-dpu/src/main.rs +++ b/vibi-dpu/src/main.rs @@ -4,9 +4,6 @@ mod db; mod core; mod bitbucket; mod utils; -mod setup; -mod github; -mod client; #[tokio::main] async fn main() {