revert Manifest and Block to ref objects to avoid triggering broken sink/move semantics
This commit is contained in:
parent
13d4e1453f
commit
a274d24583
|
@ -31,7 +31,7 @@ import ./codextypes
|
||||||
export errors, logutils, units, codextypes
|
export errors, logutils, units, codextypes
|
||||||
|
|
||||||
type
|
type
|
||||||
Block* = object
|
Block* = ref object
|
||||||
cid*: Cid
|
cid*: Cid
|
||||||
data*: seq[byte]
|
data*: seq[byte]
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import ../logutils
|
||||||
# TODO: Manifest should be reworked to more concrete types,
|
# TODO: Manifest should be reworked to more concrete types,
|
||||||
# perhaps using inheritance
|
# perhaps using inheritance
|
||||||
type
|
type
|
||||||
Manifest* = object
|
Manifest* = ref object
|
||||||
treeCid {.serialize.}: Cid # Root of the merkle tree
|
treeCid {.serialize.}: Cid # Root of the merkle tree
|
||||||
datasetSize {.serialize.}: NBytes # Total size of all blocks
|
datasetSize {.serialize.}: NBytes # Total size of all blocks
|
||||||
blockSize {.serialize.}: NBytes # Size of each contained block (might not be needed if blocks are len-prefixed)
|
blockSize {.serialize.}: NBytes # Size of each contained block (might not be needed if blocks are len-prefixed)
|
||||||
|
|
Loading…
Reference in New Issue