diff --git a/Sources/ConnectionPoolModule/PoolStateMachine.swift b/Sources/ConnectionPoolModule/PoolStateMachine.swift index 6e41f730..d5d3fbe0 100644 --- a/Sources/ConnectionPoolModule/PoolStateMachine.swift +++ b/Sources/ConnectionPoolModule/PoolStateMachine.swift @@ -359,7 +359,6 @@ struct PoolStateMachine< @inlinable mutating func connectionKeepAliveTimerTriggered(_ connectionID: ConnectionID) -> Action { precondition(self.configuration.keepAliveDuration != nil) - precondition(self.requestQueue.isEmpty) guard let keepAliveAction = self.connections.keepAliveIfIdle(connectionID) else { return .none() @@ -387,8 +386,6 @@ struct PoolStateMachine< @inlinable mutating func connectionIdleTimerTriggered(_ connectionID: ConnectionID) -> Action { - precondition(self.requestQueue.isEmpty) - guard let closeAction = self.connections.closeConnectionIfIdle(connectionID) else { return .none() }