mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-11 18:03:09 +00:00
moves initializer around to prevent circ deps
This commit is contained in:
parent
fe1cc15fbd
commit
ff04de52da
@ -258,3 +258,8 @@ func decode*(_: type Manifest, blk: Block): ?!Manifest =
|
||||
return failure "Cid not a manifest codec"
|
||||
|
||||
Manifest.decode(blk.data)
|
||||
|
||||
func new*(T: type Manifest, data: openArray[byte]): ?!Manifest =
|
||||
## Create a manifest instance from given data
|
||||
##
|
||||
Manifest.decode(data)
|
||||
|
||||
@ -366,9 +366,3 @@ func new*(
|
||||
filename: manifest.filename,
|
||||
mimetype: manifest.mimetype,
|
||||
)
|
||||
|
||||
func new*(T: type Manifest, data: openArray[byte]): ?!Manifest =
|
||||
## Create a manifest instance from given data
|
||||
##
|
||||
|
||||
Manifest.decode(data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user