@@ -35,23 +35,19 @@ internal final class ConnectionManager: @unchecked Sendable {
3535 var reconnect : Reconnect
3636
3737 var candidate : EventLoopFuture < Channel >
38- var readyChannelMuxPromise : EventLoopPromise < NIOHTTP2Handler . StreamMultiplexer >
39- var candidateMuxPromise : EventLoopPromise < NIOHTTP2Handler . StreamMultiplexer >
38+ var readyChannelMuxPromise : EventLoopPromise < HTTP2StreamMultiplexer >
39+ var candidateMuxPromise : EventLoopPromise < HTTP2StreamMultiplexer >
4040 }
4141
4242 internal struct ConnectedState {
4343 var backoffIterator : ConnectionBackoffIterator ?
4444 var reconnect : Reconnect
4545 var candidate : Channel
46- var readyChannelMuxPromise : EventLoopPromise < NIOHTTP2Handler . StreamMultiplexer >
47- var multiplexer : NIOHTTP2Handler . StreamMultiplexer
46+ var readyChannelMuxPromise : EventLoopPromise < HTTP2StreamMultiplexer >
47+ var multiplexer : HTTP2StreamMultiplexer
4848 var error : Error ?
4949
50- init (
51- from state: ConnectingState ,
52- candidate: Channel ,
53- multiplexer: NIOHTTP2Handler . StreamMultiplexer
54- ) {
50+ init ( from state: ConnectingState , candidate: Channel , multiplexer: HTTP2StreamMultiplexer ) {
5551 self . backoffIterator = state. backoffIterator
5652 self . reconnect = state. reconnect
5753 self . candidate = candidate
@@ -62,7 +58,7 @@ internal final class ConnectionManager: @unchecked Sendable {
6258
6359 internal struct ReadyState {
6460 var channel : Channel
65- var multiplexer : NIOHTTP2Handler . StreamMultiplexer
61+ var multiplexer : HTTP2StreamMultiplexer
6662 var error : Error ?
6763
6864 init ( from state: ConnectedState ) {
@@ -73,7 +69,7 @@ internal final class ConnectionManager: @unchecked Sendable {
7369
7470 internal struct TransientFailureState {
7571 var backoffIterator : ConnectionBackoffIterator ?
76- var readyChannelMuxPromise : EventLoopPromise < NIOHTTP2Handler . StreamMultiplexer >
72+ var readyChannelMuxPromise : EventLoopPromise < HTTP2StreamMultiplexer >
7773 var scheduled : Scheduled < Void >
7874 var reason : Error
7975
@@ -256,8 +252,8 @@ internal final class ConnectionManager: @unchecked Sendable {
256252 }
257253 }
258254
259- /// Returns the `NIOHTTP2Handler.StreamMultiplexer ` from the 'ready' state or `nil` if it is not available.
260- private var multiplexer : NIOHTTP2Handler . StreamMultiplexer ? {
255+ /// Returns the `HTTP2StreamMultiplexer ` from the 'ready' state or `nil` if it is not available.
256+ private var multiplexer : HTTP2StreamMultiplexer ? {
261257 self . eventLoop. assertInEventLoop ( )
262258 switch self . state {
263259 case let . ready( state) :
@@ -365,8 +361,8 @@ internal final class ConnectionManager: @unchecked Sendable {
365361 /// Get the multiplexer from the underlying channel handling gRPC calls.
366362 /// if the `ConnectionManager` was configured to be `fastFailure` this will have
367363 /// one chance to connect - if not reconnections are managed here.
368- internal func getHTTP2Multiplexer( ) -> EventLoopFuture < NIOHTTP2Handler . StreamMultiplexer > {
369- func getHTTP2Multiplexer0( ) -> EventLoopFuture < NIOHTTP2Handler . StreamMultiplexer > {
364+ internal func getHTTP2Multiplexer( ) -> EventLoopFuture < HTTP2StreamMultiplexer > {
365+ func getHTTP2Multiplexer0( ) -> EventLoopFuture < HTTP2StreamMultiplexer > {
370366 switch self . callStartBehavior {
371367 case . waitsForConnectivity:
372368 return self . getHTTP2MultiplexerPatient ( )
@@ -386,8 +382,8 @@ internal final class ConnectionManager: @unchecked Sendable {
386382
387383 /// Returns a future for the multiplexer which succeeded when the channel is connected.
388384 /// Reconnects are handled if necessary.
389- private func getHTTP2MultiplexerPatient( ) -> EventLoopFuture < NIOHTTP2Handler . StreamMultiplexer > {
390- let multiplexer : EventLoopFuture < NIOHTTP2Handler . StreamMultiplexer >
385+ private func getHTTP2MultiplexerPatient( ) -> EventLoopFuture < HTTP2StreamMultiplexer > {
386+ let multiplexer : EventLoopFuture < HTTP2StreamMultiplexer >
391387
392388 switch self . state {
393389 case . idle:
@@ -425,12 +421,11 @@ internal final class ConnectionManager: @unchecked Sendable {
425421 /// attempt, or if the state is 'idle' returns the future for the next connection attempt.
426422 ///
427423 /// Note: if the state is 'transientFailure' or 'shutdown' then a failed future will be returned.
428- private func getHTTP2MultiplexerOptimistic( )
429- -> EventLoopFuture < NIOHTTP2Handler . StreamMultiplexer > {
424+ private func getHTTP2MultiplexerOptimistic( ) -> EventLoopFuture < HTTP2StreamMultiplexer > {
430425 // `getHTTP2Multiplexer` makes sure we're on the event loop but let's just be sure.
431426 self . eventLoop. preconditionInEventLoop ( )
432427
433- let muxFuture : EventLoopFuture < NIOHTTP2Handler . StreamMultiplexer > = { ( ) in
428+ let muxFuture : EventLoopFuture < HTTP2StreamMultiplexer > = { ( ) in
434429 switch self . state {
435430 case . idle:
436431 self . startConnecting ( )
@@ -661,7 +656,7 @@ internal final class ConnectionManager: @unchecked Sendable {
661656 }
662657
663658 /// The connecting channel became `active`. Must be called on the `EventLoop`.
664- internal func channelActive( channel: Channel , multiplexer: NIOHTTP2Handler . StreamMultiplexer ) {
659+ internal func channelActive( channel: Channel , multiplexer: HTTP2StreamMultiplexer ) {
665660 self . eventLoop. preconditionInEventLoop ( )
666661 self . logger. debug ( " activating connection " , metadata: [
667662 " connectivity_state " : " \( self . state. label) " ,
@@ -978,7 +973,7 @@ extension ConnectionManager {
978973
979974 private func startConnecting(
980975 backoffIterator: ConnectionBackoffIterator ? ,
981- muxPromise: EventLoopPromise < NIOHTTP2Handler . StreamMultiplexer >
976+ muxPromise: EventLoopPromise < HTTP2StreamMultiplexer >
982977 ) {
983978 let timeoutAndBackoff = backoffIterator? . next ( )
984979
@@ -1065,7 +1060,7 @@ extension ConnectionManager {
10651060
10661061 /// Returns the `multiplexer` from a connection in the `ready` state or `nil` if it is any
10671062 /// other state.
1068- internal var multiplexer : NIOHTTP2Handler . StreamMultiplexer ? {
1063+ internal var multiplexer : HTTP2StreamMultiplexer ? {
10691064 return self . manager. multiplexer
10701065 }
10711066
0 commit comments