File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ internal struct LambdaHTTPServer {
106
106
eventLoopGroup: MultiThreadedEventLoopGroup = . singleton,
107
107
logger: Logger ,
108
108
_ closure: sending @escaping ( ) async throws -> Result
109
- ) async throws -> Result {
109
+ ) async throws -> Swift . Result < Result , any Error > {
110
110
let channel = try await ServerBootstrap ( group: eventLoopGroup)
111
111
. serverChannelOption ( . backlog, value: 256 )
112
112
. serverChannelOption ( . socketOption( . so_reuseaddr) , value: 1 )
@@ -224,7 +224,7 @@ internal struct LambdaHTTPServer {
224
224
}
225
225
226
226
logger. info ( " Server shutting down " )
227
- return try result. get ( )
227
+ return result // ignore errors here, we are shutting down anyway
228
228
}
229
229
230
230
/// This method handles individual TCP connections
You can’t perform that action at this time.
0 commit comments