pub async fn create_store(&self) -> anyhow::Result<Arc<dyn ObjectStore>> {
        self.store
            .get_or_try_init(|| async {
                Self::create_from_config(&self.config)
                    .await
                    .with_context(|| {
                        format!(
                            "failed creating object store factory with configuration {:?}",
                            self.config
                        )
                    })
            })
            .await
            .cloned()
    }
Creates an [`ObjectStore`] or returns a cached store if one was created previously.

# Errors

Returns an error if store initialization fails (e.g., because of incorrect configuration).
core/lib/object_store/src/factory.rs