Minor fixes.
GitOrigin-RevId: cc03c7e7a507fab2308495ea23f8ef9630a8142f
This commit is contained in:
parent
e18bce69a1
commit
4d72f8c14b
@ -304,7 +304,6 @@ class TlsHelloStore {
|
||||
x = get_double_x(x, mod, big_num_context);
|
||||
}
|
||||
key.copy_from(x.to_le_binary(32));
|
||||
LOG(ERROR) << td::format::as_hex_dump<0>(td::Slice(key));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "td/telegram/ChannelId.h"
|
||||
#include "td/telegram/ContactsManager.h"
|
||||
#include "td/telegram/DialogId.h"
|
||||
#include "td/telegram/Document.h"
|
||||
#include "td/telegram/DocumentsManager.h"
|
||||
#include "td/telegram/DocumentsManager.hpp"
|
||||
#include "td/telegram/files/FileId.h"
|
||||
|
@ -892,7 +892,7 @@ Status FileManager::check_local_location(FileNodePtr node) {
|
||||
return status;
|
||||
}
|
||||
|
||||
bool FileManager::try_fix_parital_local_location(FileNodePtr node) {
|
||||
bool FileManager::try_fix_partial_local_location(FileNodePtr node) {
|
||||
LOG(INFO) << "Trying to fix partial local location";
|
||||
if (node->local_.type() != LocalFileLocation::Type::Partial) {
|
||||
LOG(INFO) << " failed - not a partial location";
|
||||
@ -3447,7 +3447,7 @@ void FileManager::on_error_impl(FileNodePtr node, FileManager::Query::Type type,
|
||||
run_download(node);
|
||||
return;
|
||||
} else if (ends_with(status.message(), "INCREASE_PART_SIZE")) {
|
||||
if (try_fix_parital_local_location(node)) {
|
||||
if (try_fix_partial_local_location(node)) {
|
||||
run_download(node);
|
||||
return;
|
||||
}
|
||||
|
@ -564,7 +564,7 @@ class FileManager : public FileLoadManager::Callback {
|
||||
FileId register_pmc_file_data(FileData &&data);
|
||||
|
||||
Status check_local_location(FileNodePtr node);
|
||||
bool try_fix_parital_local_location(FileNodePtr node);
|
||||
bool try_fix_partial_local_location(FileNodePtr node);
|
||||
Status check_local_location(FullLocalFileLocation &location, int64 &size);
|
||||
void try_flush_node_full(FileNodePtr node, bool new_remote, bool new_local, bool new_generate, FileDbId other_pmc_id);
|
||||
void try_flush_node(FileNodePtr node, const char *source);
|
||||
|
@ -295,6 +295,7 @@ ActorId<GetHostByNameActor> ConnectionCreator::get_dns_resolver() {
|
||||
}
|
||||
|
||||
void ConnectionCreator::ping_proxy(int32 proxy_id, Promise<double> promise) {
|
||||
CHECK(!close_flag_);
|
||||
if (proxy_id == 0) {
|
||||
auto main_dc_id = G()->net_query_dispatcher().main_dc_id();
|
||||
bool prefer_ipv6 = G()->shared_config().get_option_boolean("prefer_ipv6");
|
||||
|
@ -16,6 +16,8 @@ char disable_linker_warning_about_empty_file_bignum_cpp TD_UNUSED;
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace td {
|
||||
|
||||
class BigNumContext::Impl {
|
||||
|
Loading…
Reference in New Issue
Block a user