Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings #1040

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Conversation

MisterDA
Copy link
Contributor

This PR fixes deprecation warnings, and the error that ppx_expect.common isn't found. As we're not using dune's explicit transitive deps feature (anymore?), they can be deleted from the dune file too.

@@ -85,7 +85,6 @@ let handle_client handle_request sock rd wr =
Http.Request.is_keep_alive req
&& Http.Response.is_keep_alive res
in
let flush = Http.Response.flush res in
Copy link
Member

Choose a reason for hiding this comment

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

It's not clear to me we want to remove this completely - @rgrinberg what's the intended use for those nowadays?

Copy link
Member

Choose a reason for hiding this comment

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

I think they're useless. Flushing should just be done for every request/response.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

flush defaults to true, so removing these lines is ok.

ppx_expect.config_types
ppx_expect.common
base
ppx_inline_test.config)
Copy link
Member

Choose a reason for hiding this comment

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

I separated this change from updating to ppx_expect 0.17.0.

@@ -168,7 +168,7 @@ module Request = struct
timeout
in
Cohttp_curl.Request.create ?timeout_ms ?headers method_ ~uri ~input
~output ~on_response:(Ivar.fill response_ready)
~output ~on_response:(Ivar.fill_exn response_ready)
Copy link
Member

Choose a reason for hiding this comment

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

Does this need a minimum version bump for async?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, async_kernel >= v0.17.0. I've added it to this PR.

@rgrinberg rgrinberg merged commit eec14ff into mirage:master Jun 24, 2024
3 of 19 checks passed
@MisterDA MisterDA deleted the fix-deprecation-warnings branch June 24, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants