Skip to content

Commit b5abb55

Browse files
Removing unnecessary lazy calls.
1 parent 2adca4b commit b5abb55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ extension HTTPConnectionPool {
604604

605605
// we may already start connections for those requests and do not want to start to many
606606
let startingRequiredEventLoopConnectionCount = Dictionary(
607-
self.connections[self.overflowIndex..<self.connections.endIndex].lazy.map {
607+
self.connections[self.overflowIndex..<self.connections.endIndex].map {
608608
($0.eventLoop.id, 1)
609609
},
610610
uniquingKeysWith: +
@@ -617,7 +617,7 @@ extension HTTPConnectionPool {
617617
// If we have not enough, we will create additional connections to have at least
618618
// on connection per request.
619619
let connectionsToStart = requestCount - startingRequiredEventLoopConnectionCount[eventLoop.id, default: 0]
620-
return stride(from: 0, to: connectionsToStart, by: 1).lazy.map { _ in
620+
return stride(from: 0, to: connectionsToStart, by: 1).map { _ in
621621
(self.createNewOverflowConnection(on: eventLoop), eventLoop)
622622
}
623623
}

0 commit comments

Comments
 (0)