mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-28 10:13:10 +00:00
adds "==" operator to torrent manifest
This commit is contained in:
parent
5846fbce70
commit
96d28e8563
@ -34,6 +34,9 @@ func `==`*(a: BitTorrentInfo, b: BitTorrentInfo): bool =
|
||||
a.length == b.length and a.pieceLength == b.pieceLength and a.pieces == b.pieces and
|
||||
a.name == b.name
|
||||
|
||||
func `==`*(a: BitTorrentManifest, b: BitTorrentManifest): bool =
|
||||
a.info == b.info and a.codexManifestCid == b.codexManifestCid
|
||||
|
||||
proc newBitTorrentManifest*(
|
||||
info: BitTorrentInfo, codexManifestCid: Cid
|
||||
): BitTorrentManifest =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user