aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/wget.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2020-05-16 15:57:37 +0300
committerlevlam <levlam@telegram.org>2020-05-16 15:57:37 +0300
commitfee023c29fb8e8b258cd1bea17cf3f42561054a1 (patch)
treeb49dafad29d6384f9307f8f9e71bbf85aa7c991c /benchmark/wget.cpp
parentea9caab8bc256643fecf8eafffc7885e23a48fbe (diff)
Minor Wget improvement.
GitOrigin-RevId: eaf7fb05624fbf01012a83e18e733c77d2b9216c
Diffstat (limited to 'benchmark/wget.cpp')
-rw-r--r--benchmark/wget.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmark/wget.cpp b/benchmark/wget.cpp
index da2d5bc20..1774af0ad 100644
--- a/benchmark/wget.cpp
+++ b/benchmark/wget.cpp
@@ -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