Skip to content

Commit

Permalink
Merge pull request #139 from n0-computer/fix-car-2
Browse files Browse the repository at this point in the history
fix(iroh-car): limit to 4MiB not 4GiB
  • Loading branch information
dignifiedquire authored Jul 12, 2022
2 parents 9817b5a + 34eedb8 commit 95ff8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-car/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tokio::io::{AsyncRead, AsyncReadExt};
use super::error::Error;

/// Maximum size that is used for single node.
pub(crate) const MAX_ALLOC: usize = 4 * 1024 * 1024 * 1024;
pub(crate) const MAX_ALLOC: usize = 4 * 1024 * 1024;

pub(crate) async fn ld_read<R>(mut reader: R, buf: &mut Vec<u8>) -> Result<Option<&[u8]>, Error>
where
Expand Down

0 comments on commit 95ff8b8

Please sign in to comment.