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 8034ed7 commit 870bf9a
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 870bf9a

Please sign in to comment.