Skip to content

Commit 7fa90d1

Browse files
authored
remove try from ValkeyClient.run() (#201)
Signed-off-by: zunda <[email protected]>
1 parent 7543601 commit 7fa90d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let valkeyClient = ValkeyClient(.hostname("localhost", port: 6379), logger: logg
1111
try await withThrowingTaskgroup(of: Void.self) { group in
1212
group.addTask {
1313
// run connection pool in the background
14-
try await valkeyClient.run()
14+
await valkeyClient.run()
1515
}
1616
// use valkey client
1717
}

Sources/Valkey/Documentation.docc/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let valkeyClient = ValkeyClient(.hostname("localhost", port: 6379), logger: logg
6161
try await withThrowingTaskgroup(of: Void.self) { group in
6262
group.addTask {
6363
// run connection pool in the background
64-
try await valkeyClient.run()
64+
await valkeyClient.run()
6565
}
6666
// use valkey client
6767
}

0 commit comments

Comments
 (0)