From c2bb1d1915a010c5bb46e6701df3e662d702b20a Mon Sep 17 00:00:00 2001 From: Sebastian Galkin Date: Mon, 4 Nov 2024 17:45:58 -0300 Subject: [PATCH] Delete extra constants --- icechunk/src/storage/s3.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/icechunk/src/storage/s3.rs b/icechunk/src/storage/s3.rs index 3c6398c6..d02d920b 100644 --- a/icechunk/src/storage/s3.rs +++ b/icechunk/src/storage/s3.rs @@ -38,7 +38,9 @@ use crate::{ Storage, StorageError, }; -use super::{ListInfo, StorageResult}; +use super::{ + ListInfo, StorageResult, CHUNK_PREFIX, MANIFEST_PREFIX, REF_PREFIX, SNAPSHOT_PREFIX, +}; #[derive(Debug)] pub struct S3Storage { @@ -119,12 +121,6 @@ pub async fn mk_client(config: Option<&S3Config>) -> Client { Client::from_conf(config) } -const SNAPSHOT_PREFIX: &str = "snapshots/"; -const MANIFEST_PREFIX: &str = "manifests/"; -// const ATTRIBUTES_PREFIX: &str = "attributes/"; -const CHUNK_PREFIX: &str = "chunks/"; -const REF_PREFIX: &str = "refs"; - impl S3Storage { pub async fn new_s3_store( bucket_name: impl Into,