From 95daf3782ed1ad3de4598255ea3995832777c32a Mon Sep 17 00:00:00 2001 From: Marcin Czenko Date: Wed, 12 Mar 2025 03:06:34 +0100 Subject: [PATCH] removes redundant echos --- codex/utils/json.nim | 1 - tests/integration/testbittorrent.nim | 6 ------ 2 files changed, 7 deletions(-) diff --git a/codex/utils/json.nim b/codex/utils/json.nim index 33e2f544..b4286ea6 100644 --- a/codex/utils/json.nim +++ b/codex/utils/json.nim @@ -39,7 +39,6 @@ func `%`*(address: ethers.Address): JsonNode = proc fromJson*(_: type MultiHash, json: JsonNode): ?!MultiHash = expectJsonKind(MultiHash, JString, json) - echo "[MultiHash.fromJson] json.str: ", json.str without bytes =? json.str.hexToSeqByte.catch, err: return failure(err.msg) MultiHash.init(bytes).mapFailure diff --git a/tests/integration/testbittorrent.nim b/tests/integration/testbittorrent.nim index d47e6b36..7c11b969 100644 --- a/tests/integration/testbittorrent.nim +++ b/tests/integration/testbittorrent.nim @@ -24,16 +24,11 @@ proc createInfoDictionaryForContent( pieceHashCtx: sha1 pieceIter = Iter[int].new(0 ..< numOfBlocksPerPiece) - echo "numOfBlocksPerPiece: ", numOfBlocksPerPiece - echo "numOfPieces: ", numOfPieces pieceHashCtx.init() let chunks = content.distribute(num = numOfPieces, spread = false) - echo "chunks: ", chunks.len - for chunk in chunks: - echo "chunk: ", chunk.len if chunk.len == 0: break if pieceIter.finished: @@ -114,7 +109,6 @@ twonodessuite "BitTorrent API": let response = client1.downloadManifestOnly(cid = torrentManifest.codexManifestCid).tryGet - echo "response: ", response let restContent = RestContent.fromJson(response).tryGet check restContent.cid == torrentManifest.codexManifestCid