fix: ens search hang
ENS search was executed in a task runner task. The task had a mistake during the copy/paste port from spawnAndSend.
This commit is contained in:
parent
2e248d710d
commit
40dc428f63
|
@ -84,12 +84,12 @@ proc asyncMessageLoad[T](self: T, slot: string, chatId: string) =
|
||||||
const resolveEnsTask: Task = proc(argEncoded: string) {.gcsafe, nimcall.} =
|
const resolveEnsTask: Task = proc(argEncoded: string) {.gcsafe, nimcall.} =
|
||||||
let
|
let
|
||||||
arg = decode[ResolveEnsTaskArg](argEncoded)
|
arg = decode[ResolveEnsTaskArg](argEncoded)
|
||||||
result = status_ens.pubkey(arg.ens)
|
output = status_ens.pubkey(arg.ens)
|
||||||
arg.finish(result)
|
arg.finish(output)
|
||||||
|
|
||||||
proc resolveEns[T](self: T, slot: string, ens: string) =
|
proc resolveEns[T](self: T, slot: string, ens: string) =
|
||||||
let arg = ResolveEnsTaskArg(
|
let arg = ResolveEnsTaskArg(
|
||||||
tptr: cast[ByteAddress](asyncMessageLoadTask),
|
tptr: cast[ByteAddress](resolveEnsTask),
|
||||||
vptr: cast[ByteAddress](self.vptr),
|
vptr: cast[ByteAddress](self.vptr),
|
||||||
slot: slot,
|
slot: slot,
|
||||||
ens: ens
|
ens: ens
|
||||||
|
|
Loading…
Reference in New Issue