Skip to content

Commit 49140ca

Browse files
committed
update
1 parent 1b2443e commit 49140ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/async-http-client/proxy/http/Proxy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private extension Http.Proxy{
158158
_ taskDelegate: ITaskDelegate? = nil
159159
) async throws -> (Data, URLResponse)
160160
{
161-
guard retry > -1 else { throw HttpProxyError.RetryMustBePositive }
161+
guard retry > 0 else { throw HttpProxyError.RetryMustBeBiggerThenZero }
162162

163163
let sesstion = config.getSession
164164
var nextDelay: UInt64 = 1

Sources/async-http-client/proxy/http/enum/HttpProxyError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ import Foundation
99

1010
enum HttpProxyError : Error{
1111

12-
case RetryMustBePositive
12+
case RetryMustBeBiggerThenZero
1313

1414
}

0 commit comments

Comments
 (0)