mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 22:43:12 +00:00
Fix log message
This commit is contained in:
parent
b70a4ef2a7
commit
07b442cea9
@ -130,7 +130,7 @@ proc runCodex(ctx: ptr CodexContext) {.async: (raises: []).} =
|
||||
# Wait until a request is available
|
||||
await ctx.reqSignal.wait()
|
||||
except Exception as e:
|
||||
error "Failed to run codex thread while waiting for reqSignal.", error = e.msg
|
||||
error "Failure in run codex thread while waiting for reqSignal.", error = e.msg
|
||||
continue
|
||||
|
||||
# If codex_destroy was called, exit the loop
|
||||
@ -142,7 +142,7 @@ proc runCodex(ctx: ptr CodexContext) {.async: (raises: []).} =
|
||||
# Pop a request from the channel
|
||||
let recvOk = ctx.reqChannel.tryRecv(request)
|
||||
if not recvOk:
|
||||
error "Failed to run codex: unable to receive request in codex thread."
|
||||
error "Failure in run codex: unable to receive request in codex thread."
|
||||
continue
|
||||
|
||||
# yield immediately to the event loop
|
||||
@ -157,7 +157,7 @@ proc runCodex(ctx: ptr CodexContext) {.async: (raises: []).} =
|
||||
# Notify the main thread that we picked up the request
|
||||
let fireRes = ctx.reqReceivedSignal.fireSync()
|
||||
if fireRes.isErr():
|
||||
error "Failed to run codex: unable to fire back to requester thread.",
|
||||
error "Failure in run codex: unable to fire back to requester thread.",
|
||||
error = fireRes.error
|
||||
|
||||
proc run(ctx: ptr CodexContext) {.thread.} =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user