This commit is contained in:
asonix 2023-11-11 14:28:05 -06:00
parent e0583c07fe
commit 1538389caf
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ async fn ensure_details_identifier<S: Store + 'static>(
config: &Configuration, config: &Configuration,
identifier: &Arc<str>, identifier: &Arc<str>,
) -> Result<Details, Error> { ) -> Result<Details, Error> {
let details = repo.details(&identifier).await?; let details = repo.details(identifier).await?;
if let Some(details) = details { if let Some(details) = details {
tracing::debug!("details exist"); tracing::debug!("details exist");
@ -542,7 +542,7 @@ async fn ingest_inline<S: Store + 'static>(
client: &ClientWithMiddleware, client: &ClientWithMiddleware,
config: &Configuration, config: &Configuration,
) -> Result<(Alias, DeleteToken, Details), Error> { ) -> Result<(Alias, DeleteToken, Details), Error> {
let session = ingest::ingest(tmp_dir, repo, store, client, stream, None, &config).await?; let session = ingest::ingest(tmp_dir, repo, store, client, stream, None, config).await?;
let alias = session.alias().expect("alias should exist").to_owned(); let alias = session.alias().expect("alias should exist").to_owned();