Skip to content

Commit a72c5ad

Browse files
authored
Fix Timeout snippet in README.md (#323)
1 parent 947429b commit a72c5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ let httpClient = HTTPClient(eventLoopGroupProvider: .createNew,
9494
### Timeouts
9595
Timeouts (connect and read) can also be set using the client configuration:
9696
```swift
97-
let timeout = HTTPClient.Timeout(connect: .seconds(1), read: .seconds(1))
97+
let timeout = HTTPClient.Configuration.Timeout(connect: .seconds(1), read: .seconds(1))
9898
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew,
9999
configuration: HTTPClient.Configuration(timeout: timeout))
100100
```

0 commit comments

Comments
 (0)