Skip to content

Commit

Permalink
Make node status report succeed on any 20x HTTP code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sventimir committed Jan 26, 2024
1 parent 5abdb68 commit 2ce9695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/node_status_service/node_status_service.ml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ let send_node_status_data ~logger ~url node_status_data =
let metadata =
[ ("data", node_status_json); ("url", `String (Uri.to_string url)) ]
in
if Cohttp.Code.code_of_status status = 200 then
if Cohttp.Code.(code_of_status status >= 200 && code_of_status status < 300) then
[%log info] "Sent node status data to URL $url" ~metadata
else
let extra_metadata =
Expand Down

0 comments on commit 2ce9695

Please sign in to comment.