Skip to content

Commit 810d927

Browse files
committed
Renamed generic function connectionClosed to specific http1ConnectionClose
1 parent 5b7c946 commit 810d927

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/AsyncHTTPClient/ConnectionPool/State Machine/HTTPConnectionPool+HTTP2StateMachine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ extension HTTPConnectionPool {
369369
)
370370
}
371371

372-
mutating func connectionClosed(_ connectionID: Connection.ID) -> Action {
372+
mutating func http1ConnectionClose(_ connectionID: Connection.ID) -> Action {
373373
guard let index = self.http1Connections?.failConnection(connectionID)?.0 else {
374374
return .none
375375
}

Tests/AsyncHTTPClientTests/HTTPConnectionPool+HTTP2StateMachineTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class HTTPConnectionPool_HTTP2StateMachineTests: XCTestCase {
257257
XCTAssertEqual(failAction.request, .failRequest(finalRequest, HTTPClientError.alreadyShutdown, cancelTimeout: false))
258258

259259
// 5. close open connection
260-
let closeAction = state.connectionClosed(connectionID)
260+
let closeAction = state.http2ConnectionClosed(connectionID)
261261
XCTAssertEqual(closeAction.connection, .cleanupConnections(.init(), isShutdown: .yes(unclean: true)))
262262
XCTAssertEqual(closeAction.request, .none)
263263
}

0 commit comments

Comments
 (0)