mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Tonstorage: fix compilation on some platforms, minor improvements (#578)
* Fix compilation errors on some platforms * Update db after "copy inside" * Link rldp2 with blas * Add "--" flag to some commands
This commit is contained in:
parent
a1d8a5e4f3
commit
c9555615e9
11 changed files with 103 additions and 51 deletions
|
@ -454,6 +454,12 @@ void NodeActor::load_from(td::optional<TorrentMeta> meta, std::string files_path
|
|||
loop();
|
||||
}
|
||||
|
||||
void NodeActor::copy_to_new_root_dir(std::string new_root_dir, td::Promise<td::Unit> promise) {
|
||||
TRY_STATUS_PROMISE(promise, torrent_.copy_to(new_root_dir));
|
||||
db_store_torrent();
|
||||
promise.set_result(td::Unit());
|
||||
}
|
||||
|
||||
void NodeActor::tear_down() {
|
||||
for (auto &promise : wait_for_completion_) {
|
||||
promise.set_error(td::Status::Error("Torrent closed"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue