mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-10 20:06:33 +00:00
parent
0badcb662a
commit
145aa5d84a
@ -249,7 +249,6 @@ proc streamEntireDataset(
|
||||
if manifest.protected:
|
||||
# Retrieve, decode and save to the local store all EС groups
|
||||
proc erasureJob(): Future[?!void] {.async.} =
|
||||
try:
|
||||
# Spawn an erasure decoding job
|
||||
let
|
||||
erasure = Erasure.new(
|
||||
@ -262,13 +261,6 @@ proc streamEntireDataset(
|
||||
return failure(error)
|
||||
|
||||
return success()
|
||||
# --------------------------------------------------------------------------
|
||||
# FIXME this is a HACK so that the node does not crash during the workshop.
|
||||
# We should NOT catch Defect.
|
||||
except Exception as exc:
|
||||
trace "Exception decoding manifest", manifestCid, exc = exc.msg
|
||||
return failure(exc.msg)
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
if err =? (await erasureJob()).errorOption:
|
||||
return failure(err)
|
||||
@ -428,15 +420,6 @@ proc setupRequest(
|
||||
trace "Unable to fetch manifest for cid"
|
||||
return failure error
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# FIXME this is a BAND-AID to address
|
||||
# https://github.com/codex-storage/nim-codex/issues/852 temporarily for the
|
||||
# workshop. Remove this once we get that fixed.
|
||||
if manifest.blocksCount.uint == ecK:
|
||||
return failure("Cannot setup slots for a dataset with ecK == numBlocks. Please use a larger file or a different combination of `nodes` and `tolerance`.")
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Erasure code the dataset according to provided parameters
|
||||
let
|
||||
erasure = Erasure.new(
|
||||
|
Loading…
x
Reference in New Issue
Block a user