Minor improvements.
This commit is contained in:
parent
73d8fb4b35
commit
1f9c6c7352
@ -414,6 +414,7 @@ set(TDLIB_SOURCE
|
|||||||
td/mtproto/AuthData.h
|
td/mtproto/AuthData.h
|
||||||
td/mtproto/AuthKey.h
|
td/mtproto/AuthKey.h
|
||||||
td/mtproto/CryptoStorer.h
|
td/mtproto/CryptoStorer.h
|
||||||
|
td/mtproto/DhCallback.h
|
||||||
td/mtproto/DhHandshake.h
|
td/mtproto/DhHandshake.h
|
||||||
td/mtproto/Handshake.h
|
td/mtproto/Handshake.h
|
||||||
td/mtproto/HandshakeActor.h
|
td/mtproto/HandshakeActor.h
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
//
|
//
|
||||||
#include "td/mtproto/Handshake.h"
|
#include "td/mtproto/Handshake.h"
|
||||||
|
|
||||||
|
#include "td/mtproto/DhCallback.h"
|
||||||
#include "td/mtproto/DhHandshake.h"
|
#include "td/mtproto/DhHandshake.h"
|
||||||
#include "td/mtproto/KDF.h"
|
#include "td/mtproto/KDF.h"
|
||||||
#include "td/mtproto/mtproto_api.h"
|
#include "td/mtproto/mtproto_api.h"
|
||||||
@ -22,7 +23,6 @@
|
|||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
#include "td/utils/Time.h"
|
#include "td/utils/Time.h"
|
||||||
#include "td/utils/tl_parsers.h"
|
#include "td/utils/tl_parsers.h"
|
||||||
#include "td/utils/tl_storers.h"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/crypto.h"
|
#include "td/utils/crypto.h"
|
||||||
#include "td/utils/misc.h"
|
#include "td/utils/misc.h"
|
||||||
#include "td/utils/Random.h"
|
|
||||||
#include "td/utils/ScopeGuard.h"
|
#include "td/utils/ScopeGuard.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
|
@ -3111,7 +3111,7 @@ class CliClient final : public Actor {
|
|||||||
} else if (op == "smt" || op == "smtp" || op == "smtf" || op == "smtpf") {
|
} else if (op == "smt" || op == "smtp" || op == "smtf" || op == "smtpf") {
|
||||||
const string &chat_id = args;
|
const string &chat_id = args;
|
||||||
for (int i = 1; i <= 200; i++) {
|
for (int i = 1; i <= 200; i++) {
|
||||||
string message = PSTRING() << (td::Random::fast(0, 3) == 0 && i > 90 ? "sleep " : "") << "#" << i;
|
string message = PSTRING() << (Random::fast(0, 3) == 0 && i > 90 ? "sleep " : "") << "#" << i;
|
||||||
if (i == 6 || (op.back() == 'f' && i % 2 == 0)) {
|
if (i == 6 || (op.back() == 'f' && i % 2 == 0)) {
|
||||||
message = string(4097, 'a');
|
message = string(4097, 'a');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user