various: shared HTTP client with connection pooling

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id13c17e9352da970a289f4e3ad909c5b6a6a6964
This commit is contained in:
raf 2026-02-18 17:20:29 +03:00
commit 7ee9ee1159
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 64 additions and 20 deletions

View file

@ -9,6 +9,7 @@ mod error;
mod export;
mod fetch;
mod git;
mod http;
mod ipc;
mod model;
mod platform;
@ -23,8 +24,6 @@ use clap::Parser;
use cli::{Cli, Commands};
use error::PakkerError;
use crate::rate_limiter::RateLimiter;
#[tokio::main]
async fn main() -> Result<(), PakkerError> {
let cli = Cli::parse();
@ -48,8 +47,6 @@ async fn main() -> Result<(), PakkerError> {
let lockfile_path = working_dir.join("pakker-lock.json");
let config_path = working_dir.join("pakker.json");
let _rate_limiter = std::sync::Arc::new(RateLimiter::new(None));
match cli.command {
Commands::Init(args) => {
cli::commands::init::execute(args, &lockfile_path, &config_path).await