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)) ```