Skip to content

Commit 510d635

Browse files
committed
Add underscore prefix to start0
1 parent b17d92e commit 510d635

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/AsyncHTTPClient/ConnectionPool/HTTP2/HTTP2Connection.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ final class HTTP2Connection {
129129
delegate: delegate,
130130
logger: logger
131131
)
132-
return connection.start0().map { maxStreams in (connection, maxStreams) }
132+
return connection._start0().map { maxStreams in (connection, maxStreams) }
133133
}
134134

135135
func executeRequest(_ request: HTTPExecutableRequest) {
@@ -164,7 +164,7 @@ final class HTTP2Connection {
164164
return promise.futureResult
165165
}
166166

167-
func start0() -> EventLoopFuture<Int> {
167+
func _start0() -> EventLoopFuture<Int> {
168168
self.channel.eventLoop.assertInEventLoop()
169169

170170
let readyToAcceptConnectionsPromise = self.channel.eventLoop.makePromise(of: Int.self)

Tests/AsyncHTTPClientTests/HTTP2ConnectionTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class HTTP2ConnectionTests: XCTestCase {
5454
delegate: TestHTTP2ConnectionDelegate(),
5555
logger: logger
5656
)
57-
let startFuture = connection.start0()
57+
let startFuture = connection._start0()
5858

5959
XCTAssertNoThrow(try embedded.close().wait())
6060
// to really destroy the channel we need to tick once

0 commit comments

Comments
 (0)