@@ -217,7 +217,7 @@ extension HTTPConnectionPool {
217
217
}
218
218
219
219
mutating func newHTTP2ConnectionEstablished( _ connection: Connection , maxConcurrentStreams: Int ) -> Action {
220
- self . _newHTTP2ConnectionEstablished ( connection, maxConcurrentStreams: maxConcurrentStreams) . asStateMachineAction
220
+ . init ( self . _newHTTP2ConnectionEstablished ( connection, maxConcurrentStreams: maxConcurrentStreams) )
221
221
}
222
222
223
223
private mutating func _newHTTP2ConnectionEstablished( _ connection: Connection , maxConcurrentStreams: Int ) -> EstablishedAction {
@@ -292,7 +292,7 @@ extension HTTPConnectionPool {
292
292
293
293
mutating func newHTTP2MaxConcurrentStreamsReceived( _ connectionID: Connection . ID , newMaxStreams: Int ) -> Action {
294
294
let ( index, context) = self . connections. newHTTP2MaxConcurrentStreamsReceived ( connectionID, newMaxStreams: newMaxStreams)
295
- return self . nextActionForAvailableConnection ( at: index, context: context) . asStateMachineAction
295
+ return . init ( self . nextActionForAvailableConnection ( at: index, context: context) )
296
296
}
297
297
298
298
mutating func http2ConnectionGoAwayReceived( _ connectionID: Connection . ID ) -> Action {
@@ -362,7 +362,7 @@ extension HTTPConnectionPool {
362
362
363
363
mutating func http2ConnectionStreamClosed( _ connectionID: Connection . ID ) -> Action {
364
364
let ( index, context) = self . connections. releaseStream ( connectionID)
365
- return self . nextActionForAvailableConnection ( at: index, context: context) . asStateMachineAction
365
+ return . init ( self . nextActionForAvailableConnection ( at: index, context: context) )
366
366
}
367
367
368
368
mutating func failedToCreateNewConnection( _ error: Error , connectionID: Connection . ID ) -> Action {
0 commit comments