remove debug prints
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
29c55e5fc4
commit
0b99e5aebc
|
@ -33,9 +33,6 @@ impl LocalChunkReader {
|
||||||
|
|
||||||
impl ReadChunk for LocalChunkReader {
|
impl ReadChunk for LocalChunkReader {
|
||||||
fn read_raw_chunk(&mut self, digest: &[u8; 32]) -> Result<DataBlob, Error> {
|
fn read_raw_chunk(&mut self, digest: &[u8; 32]) -> Result<DataBlob, Error> {
|
||||||
let digest_str = proxmox::tools::digest_to_hex(digest);
|
|
||||||
println!("READ CHUNK {}", digest_str);
|
|
||||||
|
|
||||||
let (path, _) = self.store.chunk_path(digest);
|
let (path, _) = self.store.chunk_path(digest);
|
||||||
let raw_data = proxmox::tools::fs::file_get_contents(&path)?;
|
let raw_data = proxmox::tools::fs::file_get_contents(&path)?;
|
||||||
let chunk = DataBlob::from_raw(raw_data)?;
|
let chunk = DataBlob::from_raw(raw_data)?;
|
||||||
|
@ -75,9 +72,6 @@ impl AsyncReadChunk for LocalChunkReader {
|
||||||
digest: &'a [u8; 32],
|
digest: &'a [u8; 32],
|
||||||
) -> Pin<Box<dyn Future<Output = Result<DataBlob, Error>> + Send + 'a>> {
|
) -> Pin<Box<dyn Future<Output = Result<DataBlob, Error>> + Send + 'a>> {
|
||||||
Box::pin(async move{
|
Box::pin(async move{
|
||||||
let digest_str = proxmox::tools::digest_to_hex(digest);
|
|
||||||
println!("READ CHUNK {}", digest_str);
|
|
||||||
|
|
||||||
let (path, _) = self.store.chunk_path(digest);
|
let (path, _) = self.store.chunk_path(digest);
|
||||||
|
|
||||||
let raw_data = tokio::fs::read(&path).await?;
|
let raw_data = tokio::fs::read(&path).await?;
|
||||||
|
|
Loading…
Reference in New Issue