Make NetQuery::tl_magic private.
GitOrigin-RevId: 06b9d496cea9fb9088e4514949573697d7a14231
This commit is contained in:
parent
0396d2dfff
commit
1b628d3ab7
@ -266,8 +266,6 @@ class NetQuery : public TsListNode<NetQueryDebug> {
|
||||
finish_migrate(cancel_slot_);
|
||||
}
|
||||
|
||||
static int32 tl_magic(const BufferSlice &buffer_slice);
|
||||
|
||||
private:
|
||||
State state_ = State::Empty;
|
||||
Type type_ = Type::Common;
|
||||
@ -319,6 +317,8 @@ class NetQuery : public TsListNode<NetQueryDebug> {
|
||||
|
||||
static int32 get_my_id();
|
||||
|
||||
static int32 tl_magic(const BufferSlice &buffer_slice);
|
||||
|
||||
public:
|
||||
double next_timeout_ = 1; // for NetQueryDelayer
|
||||
double total_timeout_ = 0; // for NetQueryDelayer/SequenceDispatcher
|
||||
|
@ -32,7 +32,7 @@ NetQueryPtr NetQueryCreator::create(uint64 id, const telegram_api::Function &fun
|
||||
LOG_CHECK(real_size == slice.size()) << real_size << " " << slice.size() << " "
|
||||
<< format::as_hex_dump<4>(Slice(slice.as_slice()));
|
||||
|
||||
int32 tl_constructor = NetQuery::tl_magic(slice);
|
||||
int32 tl_constructor = function.get_id();
|
||||
|
||||
size_t MIN_GZIPPED_SIZE = 128;
|
||||
auto gzip_flag = slice.size() < MIN_GZIPPED_SIZE ? NetQuery::GzipFlag::Off : NetQuery::GzipFlag::On;
|
||||
|
Loading…
Reference in New Issue
Block a user