summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpClient.h
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2023-06-05 01:43:53 +0300
committerGitHub <noreply@github.com>2023-06-05 01:43:53 +0300
commitf35c7696d73fb725095be82ae8a982d14283686a (patch)
treeb2e0e4fdebeff72d3d2cc9dc5f245e97e39a8a23 /include/tgbot/net/HttpClient.h
parent9343618bdea96942c86fa8fc927a28f2885550af (diff)
Revert "Repeat the http request on fail"
Diffstat (limited to 'include/tgbot/net/HttpClient.h')
-rw-r--r--include/tgbot/net/HttpClient.h18
1 files changed, 0 insertions, 18 deletions
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<HttpReqArg>& 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;
};
}