File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -213,14 +213,15 @@ module HttpStore = struct
213213 in
214214 set t key (List. fold_left f ov rsv)
215215
216- let erase t key =
216+ (* let erase t key =
217217 Eio.Switch.run @@ fun sw ->
218218 let url = Uri.with_path t.base_url key in
219219 let resp, _ = Client.delete ~sw t.client url in
220220 match Http.Response.status resp with
221221 | #Http.Status.success -> Deferred.return_unit
222- | e -> raise_status_error e
222+ | e -> raise_status_error e *)
223223
224+ let erase _ = raise Not_implemented
224225 let erase_prefix _ = raise Not_implemented
225226 let list _ = raise Not_implemented
226227 let list_dir _ = raise Not_implemented
Original file line number Diff line number Diff line change @@ -112,14 +112,15 @@ module Make (Deferred : Types.Deferred) (C : C with type 'a io = 'a Deferred.t)
112112 set t key (List. fold_left f ov rsv)
113113
114114 (* make reshaping arrays possible *)
115- let erase t key =
115+ (* let erase t key =
116116 let tries = t.tries and client = t.client and config = t.config in
117117 let url = t.base_url ^ key in
118118 let+ res = C.http ~tries ~client ~config ~url ~meth:DELETE () in
119119 match fold_result res with
120- | {code; _} when code = 200 -> ()
121- | {code; body; _} -> raise (Request_failed (code, body))
120+ | {code; _} when code = 200 || code = 404 -> ()
121+ | {code; body; _} -> raise (Request_failed (code, body)) *)
122122
123+ let erase _ = raise Not_implemented
123124 let erase_prefix _ = raise Not_implemented
124125 let list _ = raise Not_implemented
125126 let list_dir _ = raise Not_implemented
You can’t perform that action at this time.
0 commit comments