From f35c7696d73fb725095be82ae8a982d14283686a Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Mon, 5 Jun 2023 01:43:53 +0300 Subject: Revert "Repeat the http request on fail" --- include/tgbot/net/HttpClient.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include/tgbot') diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h index 1f1b2a2..aa82c0d 100644 --- a/include/tgbot/net/HttpClient.h +++ b/include/tgbot/net/HttpClient.h @@ -29,24 +29,6 @@ public: virtual std::string makeRequest(const Url& url, const std::vector& args) const = 0; std::int32_t _timeout = 25; - - /** - * @brief Get the maximum number of makeRequest() retries before giving up and throwing an exception. - */ - virtual int getRequestMaxRetries() const { - return requestMaxRetries; - } - - /** - * @brief Get the makeRequest() backoff duration between retries, in seconds. - */ - virtual int getRequestBackoff() const { - return requestBackoff; - } - -private: - int requestMaxRetries = 3; - int requestBackoff = 1; }; } -- cgit v1.2.3