From 35a9100820e5fb5787bc2643dddc062daffc2e30 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 25 Oct 2024 13:57:44 +0200 Subject: [PATCH] Removing debug messages --- codex/rest/api.nim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/codex/rest/api.nim b/codex/rest/api.nim index d1cb468fc..dc48002ee 100644 --- a/codex/rest/api.nim +++ b/codex/rest/api.nim @@ -590,21 +590,14 @@ proc initPurchasingApi(node: CodexNodeRef, router: var RestRouter) = ## tolerance - allowed number of nodes that can be lost before content is lost ## colateral - requested collateral from hosts when they fill slot try: - echo "without contracts" without contracts =? node.contracts.client: return RestApiResponse.error(Http503, "Persistence is not enabled", headers = headers) - echo "without cid" - without cid =? cid.tryGet.catch, error: return RestApiResponse.error(Http400, error.msg, headers = headers) - echo "body" - let body = await request.getBody() - echo "without params" - without params =? StorageRequestParams.fromJson(body), error: return RestApiResponse.error(Http400, error.msg, headers = headers) @@ -631,8 +624,6 @@ proc initPurchasingApi(node: CodexNodeRef, router: var RestRouter) = if expiry <= 0 or expiry >= params.duration: return RestApiResponse.error(Http400, "Expiry needs value bigger then zero and smaller then the request's duration", headers = headers) - echo "request storage" - without purchaseId =? await node.requestStorage( cid, params.duration,