Skip to content

Commit

Permalink
Adjust whitespace after preceding commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Nov 12, 2023
1 parent 689eb2c commit cb60070
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/http/http.ml
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,14 @@ let serve_with_details
| `Unix path ->
Lwt.return (Lwt_unix.ADDR_UNIX path)
| `Inet port ->
let%lwt addresses = Lwt_unix.getaddrinfo interface (string_of_int port) [] in
match addresses with
| [] ->
Printf.ksprintf failwith "Dream.%s: no interface with address %s"
caller_function_for_error_messages interface
| address::_ ->
Lwt.return Lwt_unix.(address.ai_addr)
let%lwt addresses =
Lwt_unix.getaddrinfo interface (string_of_int port) [] in
match addresses with
| [] ->
Printf.ksprintf failwith "Dream.%s: no interface with address %s"
caller_function_for_error_messages interface
| address::_ ->
Lwt.return Lwt_unix.(address.ai_addr)
in

(* Bring up the HTTP server. Wait for the server to actually get started.
Expand Down

0 comments on commit cb60070

Please sign in to comment.