From 09551cf902f1679d3b5fec041f7be87eb52cd892 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 12 Nov 2025 07:53:12 +0100 Subject: [PATCH] fix: parse config using int for ThreadCount instead of using string --- .../requests/node_lifecycle_request.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/library/codex_thread_requests/requests/node_lifecycle_request.nim b/library/codex_thread_requests/requests/node_lifecycle_request.nim index 18dbc7aa..532facf3 100644 --- a/library/codex_thread_requests/requests/node_lifecycle_request.nim +++ b/library/codex_thread_requests/requests/node_lifecycle_request.nim @@ -56,11 +56,7 @@ proc readValue*(r: var JsonReader, val: var SignedPeerRecord) = val = res.get() proc readValue*(r: var JsonReader, val: var ThreadCount) = - let res = ThreadCount.parse(r.readValue(string)) - if res.isErr: - raise - newException(SerializationError, "Cannot parse the thread count: " & res.error()) - val = res.get() + val = ThreadCount(r.readValue(int)) proc readValue*(r: var JsonReader, val: var NBytes) = val = NBytes(r.readValue(int))