immobiliare / RealHTTP

🌀swift async http client - fast, lightweight, type-safe
MIT License
282 stars 28 forks source link

fix #46: fixed crash with HTTPMetrics DateInterval init when range is wrong #47

Closed malcommac closed 2 years ago

malcommac commented 2 years ago

This PR fixes an issue which crash the library when the DateInterval used to collect metrics inside the HTTPMetrics object contains a wrong interval where the start and end date are not in the correct order.