From 865ca0195ac31fca21810ea8ddfb33e41260be7d Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Mon, 7 Jul 2025 15:51:07 +0300 Subject: [PATCH] moving fireSync location --- library/waku_context.nim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/waku_context.nim b/library/waku_context.nim index fc6b1258b..6a6422d02 100644 --- a/library/waku_context.nim +++ b/library/waku_context.nim @@ -192,6 +192,11 @@ proc wakuThreadBody(ctx: ptr WakuContext) {.thread.} = error "waku thread could not receive a request" continue + ## Handle the request + echo "--------------- before asyncSpawn" + asyncSpawn WakuThreadRequest.process(request, addr waku) + echo "------------- after asyncSpawn" + echo "----------- wakuThreadBody 7 sending sync" let fireRes = ctx.reqReceivedSignal.fireSync() echo "----------- wakuThreadBody after sending sync" @@ -199,11 +204,6 @@ proc wakuThreadBody(ctx: ptr WakuContext) {.thread.} = echo "----------- failed sending sync" error "could not fireSync back to requester thread", error = fireRes.error - ## Handle the request - echo "--------------- before asyncSpawn" - asyncSpawn WakuThreadRequest.process(request, addr waku) - echo "------------- after asyncSpawn" - waitFor wakuRun(ctx) proc createWakuContext*(): Result[ptr WakuContext, string] =