Skip to content

Commit 243739f

Browse files
committed
Cleanup
1 parent a45b276 commit 243739f

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

icechunk/src/storage/object_store.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ use futures::{
1414
stream::{self, BoxStream},
1515
};
1616
use object_store::{
17-
Attribute, AttributeValue, Attributes, , CredentialProvider,
18-
GetOptions, ObjectMeta, ObjectStore, PutMode, PutOptions, PutPayload,
19-
Attribute, AttributeValue, Attributes, BackoffConfig, ClientConfigKey,
20-
CredentialProvider, GetOptions, ObjectMeta, ObjectStore, PutMode,
21-
PutOptions, PutPayload, RetryConfig, StaticCredentialProvider,
22-
UpdateVersion,
17+
Attribute, AttributeValue, Attributes, BackoffConfig, ClientConfigKey,
18+
CredentialProvider, GetOptions, ObjectMeta, ObjectStore, PutMode, PutOptions,
19+
PutPayload, RetryConfig, StaticCredentialProvider, UpdateVersion,
2320
aws::AmazonS3Builder,
2421
azure::{AzureConfigKey, MicrosoftAzureBuilder},
2522
gcp::{GcpCredential, GoogleCloudStorageBuilder, GoogleConfigKey},
@@ -786,7 +783,10 @@ impl fmt::Display for HttpObjectStoreBackend {
786783

787784
#[typetag::serde(name = "http_object_store_provider")]
788785
impl ObjectStoreBackend for HttpObjectStoreBackend {
789-
fn mk_object_store(&self) -> Result<Arc<dyn ObjectStore>, StorageError> {
786+
fn mk_object_store(
787+
&self,
788+
_settings: &Settings,
789+
) -> Result<Arc<dyn ObjectStore>, StorageError> {
790790
let builder = HttpBuilder::new().with_url(&self.url);
791791

792792
// Add options

icechunk/src/virtual_chunks.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,11 @@ impl ObjectStoreFetcher {
552552
.collect();
553553
let backend =
554554
HttpObjectStoreBackend { url: url.to_string(), config: Some(config) };
555+
let settings = storage::Settings::default();
555556
let client = backend
556-
.mk_object_store()
557+
.mk_object_store(&settings)
557558
.map_err(|e| VirtualReferenceErrorKind::OtherError(Box::new(e)))?;
558-
Ok(ObjectStoreFetcher { client, settings: storage::Settings::default() })
559+
Ok(ObjectStoreFetcher { client, settings })
559560
}
560561

561562
pub async fn new_gcs(

0 commit comments

Comments
 (0)