apple / swift-nio-http2

HTTP/2 support for SwiftNIO
https://swiftpackageindex.com/apple/swift-nio-http2/main/documentation/niohttp2
Apache License 2.0
465 stars 82 forks source link

DOSHeuristics DeadlineClock more explicit on 5.6 #422

Closed rnro closed 1 year ago

rnro commented 1 year ago

Motivation:

The type inference system isn't able to work out the default clock type in the DOSHeuristics init on Swift 5.6 so this change makes it more explicit

Modifications:

Add more explicit inits

Result:

The code should build on 5.6 and later

Lukasa commented 1 year ago

API breakage is failing compiling the old main.