Skip to content

Commit 95f61f2

Browse files
Merge pull request #5 from NeedleInAJayStack/doc/readme-httpclient
2 parents fa804c1 + df39c7a commit 95f61f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ Here's an example of how to use it:
8181
import HaystackClientNIO
8282

8383
func client() throws -> Client {
84+
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
8485
return try Client(
8586
baseUrl: "http://mydomain.com/api/",
8687
username: "username",
8788
password: "password",
88-
eventLoopGroup: MultiThreadedEventLoopGroup(numberOfThreads: 1)
89+
httpClient: httpClient
8990
)
9091
}
9192
```

0 commit comments

Comments
 (0)