mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-04-21 04:03:07 +00:00
fix: add callback call to storage_destroy to keep consistency
This commit is contained in:
parent
1a7cf2d335
commit
b70c760368
@ -274,11 +274,12 @@ proc storage_destroy(
|
||||
initializeLibrary()
|
||||
checkLibstorageParams(ctx, callback, userData)
|
||||
|
||||
let res = storage_context.destroyStorageContext(ctx)
|
||||
if res.isErr:
|
||||
return RET_ERR
|
||||
let
|
||||
res = storage_context.destroyStorageContext(ctx)
|
||||
ret = if res.isErr: RET_ERR else: RET_OK
|
||||
|
||||
return RET_OK
|
||||
callback(ret, nil, 0, userData)
|
||||
return ret
|
||||
|
||||
proc storage_upload_init(
|
||||
ctx: ptr StorageContext,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user