From bee630c7f075bafd88dc80457e73afa8452407cf Mon Sep 17 00:00:00 2001 From: Artem Redkin Date: Mon, 27 Jan 2020 11:40:34 +0000 Subject: [PATCH] fix usage of older api in readme example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index f49c596ed..a47e2572a 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,7 @@ let httpClient = HTTPClient(eventLoopGroupProvider: .createNew, ``` or on a per-request basis: ```swift -let timeout = HTTPClient.Timeout(connect: .seconds(1), read: .seconds(1)) -httpClient.execute(request: request, timeout: timeout) +httpClient.execute(request: request, deadline: .now() + .milliseconds(1)) ``` ### Streaming