db: make db_exec_prepared_v2 return void.

It calls db_fatal() if it fails anyway, so don't expect anyone to check.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-04-05 12:30:24 +09:30
parent 9bcf28afb3
commit df9552bcc1
4 changed files with 11 additions and 21 deletions

View File

@@ -171,7 +171,7 @@ bool db_step(struct db_stmt *stmt)
return ret;
}
bool db_exec_prepared_v2(struct db_stmt *stmt TAKES)
void db_exec_prepared_v2(struct db_stmt *stmt TAKES)
{
bool ret = stmt->db->config->exec_fn(stmt);
@@ -191,8 +191,6 @@ bool db_exec_prepared_v2(struct db_stmt *stmt TAKES)
if (taken(stmt))
tal_free(stmt);
return ret;
}
size_t db_count_changes(struct db_stmt *stmt)