Skip to content

Commit

Permalink
Delete extra constants
Browse files Browse the repository at this point in the history
  • Loading branch information
paraseba committed Nov 4, 2024
1 parent fc62650 commit c2bb1d1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions icechunk/src/storage/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<String>,
Expand Down

0 comments on commit c2bb1d1

Please sign in to comment.