fix
This commit is contained in:
parent
c52f7e84e6
commit
292dfaab3f
@ -118,8 +118,8 @@ void data_db::remove(std::string_view download_id) {
|
|||||||
[&download_id](rocksdb::Transaction *txn) -> auto {
|
[&download_id](rocksdb::Transaction *txn) -> auto {
|
||||||
return txn->Delete(download_id);
|
return txn->Delete(download_id);
|
||||||
})) {
|
})) {
|
||||||
utils::error::handle_exception(
|
utils::error::handle_error(function_name,
|
||||||
function_name, fmt::format("failed to remove|{}", download_id));
|
fmt::format("failed to remove|{}", download_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ void data_db::set(const data_entry &entry) {
|
|||||||
function_name, [&entry](rocksdb::Transaction *txn) -> auto {
|
function_name, [&entry](rocksdb::Transaction *txn) -> auto {
|
||||||
return txn->Put(entry.download_id, nlohmann::json(entry).dump());
|
return txn->Put(entry.download_id, nlohmann::json(entry).dump());
|
||||||
})) {
|
})) {
|
||||||
utils::error::handle_exception(
|
utils::error::handle_error(
|
||||||
function_name,
|
function_name,
|
||||||
fmt::format("failed to set|{}", nlohmann::json(entry).dump(2)));
|
fmt::format("failed to set|{}", nlohmann::json(entry).dump(2)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user