mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 00:13:08 +00:00
Do not wait the bridge when destroying the codex node
This commit is contained in:
parent
8c8214a09e
commit
fbd466b4cd
@ -488,10 +488,9 @@ func (node CodexNode) Destroy() error {
|
||||
}
|
||||
|
||||
if C.cGoCodexDestroy(node.ctx, bridge.resp) != C.RET_OK {
|
||||
return bridge.callError("cGoCodexDestroy")
|
||||
return errors.New("Failed to destroy the codex node.")
|
||||
}
|
||||
|
||||
_, err = bridge.wait()
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@ -270,7 +270,7 @@ proc codex_destroy(
|
||||
|
||||
let res = codex_context.destroyCodexContext(ctx)
|
||||
if res.isErr:
|
||||
return callback.error(res.error, userData)
|
||||
return RET_ERR
|
||||
|
||||
return RET_OK
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user