Skip to content

Commit 8b04c1e

Browse files
committed
Adjust for comments
1 parent bdad7d5 commit 8b04c1e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ydb/library/yql/providers/common/http_gateway/yql_http_default_retry_policy.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ IHTTPGateway::TRetryPolicy::TPtr GetHTTPDefaultRetryPolicy(THttpRetryPolicyOptio
2828
if (options.ExtendedRetriedCodes.contains(curlCode)) {
2929
// retry explicitly enumerated codes
3030
return ERetryErrorClass::ShortRetry;
31-
} else {
32-
// do not retry others
33-
return ERetryErrorClass::NoRetry;
3431
}
32+
// do not retry others
33+
return ERetryErrorClass::NoRetry;
3534
}
3635

3736
switch (httpCode) {

ydb/library/yql/providers/common/http_gateway/yql_http_default_retry_policy.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#include "yql_http_gateway.h"
44

5+
#include <curl/curl.h>
6+
#include <unordered_set>
7+
58
namespace NYql {
69

710
struct THttpRetryPolicyOptions {

0 commit comments

Comments
 (0)