Skip to content

Commit cb5461f

Browse files
committed
Delete remaining pieces to bigstringaf
1 parent 0883aeb commit cb5461f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/http_miou_client.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module H1_Client_connection = struct
1414
let next_write_operation t =
1515
(next_write_operation t
1616
:> [ `Close of int
17-
| `Write of Bigstringaf.t Faraday.iovec list
17+
| `Write of Bstr.t Faraday.iovec list
1818
| `Yield
1919
| `Upgrade ])
2020
end
@@ -28,7 +28,7 @@ module H2_Client_connection = struct
2828
let next_write_operation t =
2929
(next_write_operation t
3030
:> [ `Close of int
31-
| `Write of Bigstringaf.t Faraday.iovec list
31+
| `Write of Bstr.t Faraday.iovec list
3232
| `Yield
3333
| `Upgrade ])
3434
end

src/http_miou_server.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ module Websocket_connection = struct
401401

402402
let next_write_operation t =
403403
(next_write_operation t
404-
:> [ `Write of Bigstringaf.t Faraday.iovec list
404+
:> [ `Write of Bstr.t Faraday.iovec list
405405
| `Close of int
406406
| `Yield
407407
| `Upgrade ])

test/test.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ let fold_http_1_1 ~finally ~f acc body =
242242
let acc = ref acc in
243243
let rec on_eof () = Body.Reader.close body; finally !acc
244244
and on_read bstr ~off ~len =
245-
let str = Bigstringaf.substring bstr ~off ~len in
245+
let str = Bstr.sub_string bstr ~off ~len in
246246
Logs.debug (fun m -> m "Feed the context");
247247
acc := f !acc str;
248248
Body.Reader.schedule_read body ~on_eof ~on_read
@@ -254,7 +254,7 @@ let fold_h2 ~finally ~f acc body =
254254
let acc = ref acc in
255255
let rec on_eof () = Body.Reader.close body; finally !acc
256256
and on_read bstr ~off ~len =
257-
let str = Bigstringaf.substring bstr ~off ~len in
257+
let str = Bstr.sub_string bstr ~off ~len in
258258
Logs.debug (fun m -> m "Feed the context");
259259
acc := f !acc str;
260260
Body.Reader.schedule_read body ~on_eof ~on_read

0 commit comments

Comments
 (0)