-
Notifications
You must be signed in to change notification settings - Fork 176
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
Fix deprecation warnings #1040
Conversation
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
5df470a
to
d37bd5b
Compare
ppx_expect.config_types | ||
ppx_expect.common | ||
base | ||
ppx_inline_test.config) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Signed-off-by: Antonin Décimo <[email protected]>
Signed-off-by: Antonin Décimo <[email protected]>
Signed-off-by: Antonin Décimo <[email protected]>
d37bd5b
to
0aced7d
Compare
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.