Remove deprecated function (#1111)

Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
This commit is contained in:
Arnaud 2025-02-17 23:04:04 +01:00 committed by GitHub
parent 5af3477793
commit 6e73338425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 6 deletions

View File

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

View File

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

View File

@ -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]()}