From cc7ef2c9bcfc3a07762db6c351c1b0d7a6ed7d83 Mon Sep 17 00:00:00 2001 From: 0xpablo Date: Wed, 23 Dec 2020 19:09:05 +0100 Subject: [PATCH] Fix Timeout snippet in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7918ddf70..f287e7a79 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ let httpClient = HTTPClient(eventLoopGroupProvider: .createNew, ### Timeouts Timeouts (connect and read) can also be set using the client configuration: ```swift -let timeout = HTTPClient.Timeout(connect: .seconds(1), read: .seconds(1)) +let timeout = HTTPClient.Configuration.Timeout(connect: .seconds(1), read: .seconds(1)) let httpClient = HTTPClient(eventLoopGroupProvider: .createNew, configuration: HTTPClient.Configuration(timeout: timeout)) ```