vapor / postgres-nio

🐘 Non-blocking, event-driven Swift client for PostgreSQL.
https://api.vapor.codes/postgresnio/documentation/postgresnio/
MIT License
321 stars 75 forks source link

Fixes an availability issue for DiscardingTaskGroup on watchOS #448

Closed lovetodream closed 8 months ago

lovetodream commented 8 months ago

DiscardingTaskGroup is only available on watchOS >=10.0 :).

This patch allows the ConnectionPoolModule to be successfully built for watchOS.

codecov-commenter commented 8 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (e60e495) 59.81% compared to head (03bfb62) 59.84%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #448 +/- ## ========================================== + Coverage 59.81% 59.84% +0.02% ========================================== Files 124 124 Lines 9915 9937 +22 ========================================== + Hits 5931 5947 +16 - Misses 3984 3990 +6 ``` | [Files](https://app.codecov.io/gh/vapor/postgres-nio/pull/448?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Ξ” | | |---|---|---| | [Sources/ConnectionPoolModule/ConnectionPool.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/448?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Db25uZWN0aW9uUG9vbE1vZHVsZS9Db25uZWN0aW9uUG9vbC5zd2lmdA==) | `94.42% <ΓΈ> (ΓΈ)` | | | [.../Connection/PostgresConnection+Configuration.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/448?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Qb3N0Z3Jlc05JTy9Db25uZWN0aW9uL1Bvc3RncmVzQ29ubmVjdGlvbitDb25maWd1cmF0aW9uLnN3aWZ0) | `50.00% <100.00%> (+0.70%)` | :arrow_up: | | [...urces/PostgresNIO/New/PostgresChannelHandler.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/448?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Qb3N0Z3Jlc05JTy9OZXcvUG9zdGdyZXNDaGFubmVsSGFuZGxlci5zd2lmdA==) | `84.77% <100.00%> (ΓΈ)` | | | [...stgresNIO/New/PostgresFrontendMessageEncoder.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/448?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Qb3N0Z3Jlc05JTy9OZXcvUG9zdGdyZXNGcm9udGVuZE1lc3NhZ2VFbmNvZGVyLnN3aWZ0) | `100.00% <100.00%> (ΓΈ)` | | | [...nection State Machine/ConnectionStateMachine.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/448?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Qb3N0Z3Jlc05JTy9OZXcvQ29ubmVjdGlvbiBTdGF0ZSBNYWNoaW5lL0Nvbm5lY3Rpb25TdGF0ZU1hY2hpbmUuc3dpZnQ=) | `62.87% <86.66%> (+0.41%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/vapor/postgres-nio/pull/448/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor)