chore: remove old fixme (#1060)

* Remove FIXME

* Fix indentation
This commit is contained in:
Arnaud 2025-01-08 08:45:15 +01:00 committed by GitHub
parent 0badcb662a
commit 145aa5d84a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(