aboutsummaryrefslogtreecommitdiff
path: root/Sources/swiftGopherClient/gopherClient.swift
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-13 02:17:12 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-13 02:17:12 -0700
commit9e3cb79bbfe4eb55ef820b6afed2129412eaabe9 (patch)
tree10b4a22f585df9c75a5169cfd6a9b19599e331ad /Sources/swiftGopherClient/gopherClient.swift
parentfe8c3f5aed3c45f8d3f6679791548f3f565422f4 (diff)
public structs
Diffstat (limited to 'Sources/swiftGopherClient/gopherClient.swift')
-rw-r--r--Sources/swiftGopherClient/gopherClient.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sources/swiftGopherClient/gopherClient.swift b/Sources/swiftGopherClient/gopherClient.swift
index 6b76d94..e508285 100644
--- a/Sources/swiftGopherClient/gopherClient.swift
+++ b/Sources/swiftGopherClient/gopherClient.swift
@@ -19,7 +19,7 @@ public class GopherClient {
try? group.syncShutdownGracefully()
}
- public func sendRequest(to host: String, port: Int = 70, message: String, completion: @escaping (Result<String, Error>) -> Void) {
+ public func sendRequest(to host: String, port: Int = 70, message: String, completion: @escaping (Result<[gopherItem], Error>) -> Void) {
let bootstrap = ClientBootstrap(group: group)
.channelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1)
.channelInitializer { channel in