Skip to content

Refactor HTTP::Client timeout ivars to Time::Span#14371

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:refactor/http_client-timeout-time_span
Mar 20, 2024
Merged

Refactor HTTP::Client timeout ivars to Time::Span#14371
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:refactor/http_client-timeout-time_span

Conversation

@straight-shoota
Copy link
Member

This is primarily an internal refactor which leaves the public API untouched. Only change is that the new setter methods also allow Nil values to unset the timeout again.

Resolves part of #14368

This is primarily an internal refactor which leaves the public API
untouched. Only change is that the new setter methods also allow `Nil`
values to unset the timeout again.
Copy link
Collaborator

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one change is the type of the instance variables, which are private, and luckily we never exposed the getters 👍

@straight-shoota straight-shoota added this to the 1.12.0 milestone Mar 19, 2024
@straight-shoota straight-shoota merged commit 2f143fb into crystal-lang:master Mar 20, 2024
@straight-shoota straight-shoota deleted the refactor/http_client-timeout-time_span branch March 20, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants