From 9e3cb79bbfe4eb55ef820b6afed2129412eaabe9 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 13 Dec 2023 02:17:12 -0700 Subject: public structs --- Sources/swiftGopherClient/gopherClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sources/swiftGopherClient/gopherClient.swift') 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) -> 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 -- cgit v1.2.3