Skip to content

Commit

Permalink
DO NOT MERGE: Limit fetched object size to 5 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Sep 30, 2024
1 parent b78c66e commit 8d7343c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sc-consensus-subspace-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ where
object_fetcher: subspace_data_retrieval::object_fetcher::ObjectFetcher::new(
config.object_piece_getter,
config.erasure_coding,
None,
Some(5 * 1024 * 1024),
),
})
}
Expand Down Expand Up @@ -1044,7 +1044,7 @@ where
let cached_object_fetcher = subspace_data_retrieval::object_fetcher::ObjectFetcher::new(
Arc::new(archived_segments),
self.erasure_coding.clone(),
None,
Some(5 * 1024 * 1024),
);

let mut objects = Vec::with_capacity(mappings.len());
Expand Down

0 comments on commit 8d7343c

Please sign in to comment.