Skip to content

Commit a8e6f8d

Browse files
artemredkinweissi
authored andcommitted
fix usage of older api in readme example (#156)
1 parent 84026a7 commit a8e6f8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ let httpClient = HTTPClient(eventLoopGroupProvider: .createNew,
100100
```
101101
or on a per-request basis:
102102
```swift
103-
let timeout = HTTPClient.Timeout(connect: .seconds(1), read: .seconds(1))
104-
httpClient.execute(request: request, timeout: timeout)
103+
httpClient.execute(request: request, deadline: .now() + .milliseconds(1))
105104
```
106105

107106
### Streaming

0 commit comments

Comments
 (0)