mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
Remove deprecated function (#1111)
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
This commit is contained in:
parent
5af3477793
commit
6e73338425
@ -162,9 +162,6 @@ func verify*(self: Manifest): ?!void =
|
||||
|
||||
return success()
|
||||
|
||||
func cid*(self: Manifest): ?!Cid {.deprecated: "use treeCid instead".} =
|
||||
self.treeCid.success
|
||||
|
||||
func `==`*(a, b: Manifest): bool =
|
||||
(a.treeCid == b.treeCid) and (a.datasetSize == b.datasetSize) and
|
||||
(a.blockSize == b.blockSize) and (a.version == b.version) and (a.hcodec == b.hcodec) and
|
||||
|
||||
@ -110,7 +110,7 @@ method readOnce*(
|
||||
raise newLPStreamReadError(error)
|
||||
|
||||
trace "Reading bytes from store stream",
|
||||
manifestCid = self.manifest.cid.get(),
|
||||
manifestCid = self.manifest.treeCid,
|
||||
numBlocks = self.manifest.blocksCount,
|
||||
blockNum,
|
||||
blkCid = blk.cid,
|
||||
|
||||
@ -96,9 +96,9 @@ asyncchecksuite "Block Advertising and Discovery":
|
||||
|
||||
await engine.stop()
|
||||
|
||||
test "Should advertise both manifests and trees":
|
||||
test "Should advertise trees":
|
||||
let
|
||||
cids = @[manifest.cid.tryGet, manifest.treeCid]
|
||||
cids = @[manifest.treeCid]
|
||||
advertised = initTable.collect:
|
||||
for cid in cids:
|
||||
{cid: newFuture[void]()}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user