Skip to content

Commit

Permalink
Minor Wget improvement.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: eaf7fb05624fbf01012a83e18e733c77d2b9216c
  • Loading branch information
levlam committed May 16, 2020
1 parent ea9caab commit fee023c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions benchmark/wget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@
#include "td/utils/logging.h"
#include "td/utils/Status.h"

#include <string>

int main(int argc, char *argv[]) {
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG));
td::VERBOSITY_NAME(fd) = VERBOSITY_NAME(INFO);

std::string url = (argc > 1 ? argv[1] : "https://telegram.org");
td::string url = (argc > 1 ? argv[1] : "https://telegram.org");
auto timeout = 10;
auto ttl = 3;
auto prefer_ipv6 = (argc > 2 && std::string(argv[2]) == "-6");
auto prefer_ipv6 = (argc > 2 && td::string(argv[2]) == "-6");
auto scheduler = td::make_unique<td::ConcurrentScheduler>();
scheduler->init(0);
scheduler
Expand Down
2 changes: 1 addition & 1 deletion test/secret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ class Master : public Actor {
process_net_query_send_encrypted(std::move(message.data_), std::move(net_query), std::move(callback));
}
void process_net_query_send_encrypted(BufferSlice data, NetQueryPtr net_query,
ActorShared<NetQueryCallback> callback) {
ActorShared<NetQueryCallback> callback) {
BufferSlice answer(8);
answer.as_slice().fill(0);
as<int32>(answer.as_slice().begin()) = my_api::messages_sentEncryptedMessage::ID;
Expand Down

0 comments on commit fee023c

Please sign in to comment.