Skip to content

Commit

Permalink
fix: print error instead of panic on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed Nov 3, 2020
1 parent cd68870 commit 9555051
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions storage-proofs/porep/src/stacked/vanilla/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,12 @@ impl<'a, Tree: 'static + MerkleTreeTrait, G: 'static + Hasher> StackedDrg<'a, Tr
LabelsCache::<Tree>::new(&label_configs).context("failed to create labels cache")?;
let configs = split_config(tree_c_config.clone(), tree_count)?;

let res = fdlimit::raise_fd_limit().expect("Failed to raise the fd limit");
info!("Building trees [{} descriptors max available]", res);
match fdlimit::raise_fd_limit() {
Some(res) => {
info!("Building trees [{} descriptors max available]", res);
}
None => error!("Failed to raise the fd limit"),
};

let tree_c_root = match layers {
2 => {
Expand Down

0 comments on commit 9555051

Please sign in to comment.