Skip to content

Commit

Permalink
b?
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Kaput <[email protected]>
  • Loading branch information
mkaput committed Nov 21, 2023
1 parent 1d58e80 commit 96074ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scarb/src/core/registry/client/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::{anyhow, bail, ensure, Context, Result};
use camino::Utf8Path;
use redb::{MultimapTableDefinition, ReadableMultimapTable, ReadableTable, TableDefinition};
use semver::Version;
use tokio::io::AsyncSeekExt;
use tokio::io::{AsyncSeekExt, BufReader};
use tokio::sync::OnceCell;
use tokio::task::block_in_place;
use tracing::trace;
Expand Down Expand Up @@ -221,7 +221,7 @@ impl<'c> RegistryClientCache<'c> {
file.seek(SeekFrom::Start(0)).await?;
let actual = checksum
.digest()
.update_read_async(&mut *file)
.update_read_async(BufReader::new(&mut *file))
.await
.with_context(|| format!("failed to calculate checksum of: {package}"))?
.finish();
Expand Down

0 comments on commit 96074ac

Please sign in to comment.