chore: use new interface for synchronous calls

This commit is contained in:
gmega 2026-02-09 17:57:35 -03:00
parent 159aeb531d
commit 0777c145ea
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
2 changed files with 2 additions and 6 deletions

View File

@ -229,8 +229,7 @@ int e_storage_close(STORAGE_NODE node) {
int e_storage_destroy(STORAGE_NODE node) {
if (!node)
return RET_ERR;
resp *r = resp_alloc();
return call_wait(storage_destroy(node, (StorageCallback) on_complete, r), r, NULL);
return storage_destroy(node);
}
char *e_storage_spr(STORAGE_NODE node) {

View File

@ -47,12 +47,9 @@ int storage_close(void *ctx, StorageCallback callback, void *userData) {
return RET_OK;
}
int storage_destroy(void *ctx, StorageCallback callback, void *userData) {
int storage_destroy(void *ctx) {
if (!ctx)
return RET_ERR;
if (callback) {
callback(RET_OK, "destroyed", 9, userData);
}
return RET_OK;
}