Skip to content

Commit

Permalink
Use Ivar.fill_exn
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmoise17 committed Oct 11, 2024
1 parent 1ceb38f commit 72ec356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohttp-async/src/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module Connection = struct
req oc
>>= fun () ->
read_response ic >>= fun (resp, body) ->
Ivar.fill res (resp, `Pipe body);
Ivar.fill_exn res (resp, `Pipe body);
(* block starting any more requests until the consumer has finished reading this request *)
Pipe.closed body)
|> don't_wait_for;
Expand Down

0 comments on commit 72ec356

Please sign in to comment.