mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Improve dht lookup in overlays (#1104)
Continue dht lookup even if value was found
This commit is contained in:
parent
77a816e461
commit
9661676646
8 changed files with 127 additions and 35 deletions
|
@ -555,6 +555,12 @@ class Result {
|
|||
};
|
||||
return status_.move_as_error_suffix(suffix);
|
||||
}
|
||||
Status move_as_status() TD_WARN_UNUSED_RESULT {
|
||||
if (status_.is_error()) {
|
||||
return move_as_error();
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
const T &ok() const {
|
||||
LOG_CHECK(status_.is_ok()) << status_;
|
||||
return value_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue