mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-05 03:43:12 +00:00
fix libstorage example
This commit is contained in:
parent
3129fa9a03
commit
53cac774c3
@ -273,18 +273,13 @@ int cleanup(void *storage_ctx)
|
||||
return RET_ERR;
|
||||
}
|
||||
|
||||
r = alloc_resp();
|
||||
|
||||
// Destroy node
|
||||
// No need to wait here as storage_destroy is synchronous
|
||||
if (storage_destroy(storage_ctx, (StorageCallback)callback, r) != RET_OK)
|
||||
if (storage_destroy(storage_ctx) != RET_OK)
|
||||
{
|
||||
free_resp(r);
|
||||
return RET_ERR;
|
||||
}
|
||||
|
||||
free_resp(r);
|
||||
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user