Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Oct 3, 2024
1 parent e49ba61 commit 8b0ac94
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use clap::{Parser, Subcommand};
use futures::TryStreamExt;
use headers::{HeaderMap, HeaderMapExt, Range};
use hyper::header;
use iroh::client::blobs::ReadAtLen;
use iroh::client::docs::ShareMode;
use iroh::docs::store::DownloadPolicy;
use iroh_base::hash::Hash;
Expand Down Expand Up @@ -639,7 +640,11 @@ async fn table_get(
iroh_node
.client()
.blobs()
.read_at(entry.content_hash(), offset, length.map(|x| x as usize))
.read_at(
entry.content_hash(),
offset,
length.map_or(ReadAtLen::All, ReadAtLen::Exact),
)
.await
.map_err(Error::blobs),
response_builder
Expand Down

0 comments on commit 8b0ac94

Please sign in to comment.