fix chunking bug

This commit is contained in:
cy 2025-04-13 23:52:31 -04:00
parent b1134d5d6e
commit 57a7ab944b
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
3 changed files with 17 additions and 18 deletions

View file

@ -1,6 +1,5 @@
#![feature(let_chains)]
#![feature(extend_one)]
#![feature(array_chunks)]
use anyhow::{Context, Result};
use clap::{Parser, Subcommand};
@ -38,7 +37,7 @@ struct Cli {
region: Option<String>,
/// If unspecifed, will get it from AWS_ENDPOINT_URL envar or the AWS default
/// e.g. s3.example.com
/// e.g. https://s3.example.com
#[arg(long)]
endpoint: Option<String>,
@ -62,6 +61,7 @@ async fn main() -> Result<()> {
let filter = EnvFilter::from_default_env();
let subscriber = FmtSubscriber::builder().with_env_filter(filter).finish();
tracing::subscriber::set_global_default(subscriber)?;
let cli = Cli::parse();
let nixcp = Box::leak(Box::new(NixCp::new(&cli).await?));