Skip to content

Commit

Permalink
conduit_server: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
samoht committed Mar 12, 2016
1 parent b0606c3 commit 541bb3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions conduit_server/unikernel.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open Lwt
open Lwt.Infix
open V1_LWT
open Printf

Expand All @@ -13,10 +13,9 @@ module Main (C:CONSOLE) (CON:Conduit_mirage.S) = struct

let start console conduit =

let http_callback conn_id req body =
let http_callback _conn_id req _body =
let path = Uri.path (Cohttp.Request.uri req) in
C.log_s console (sprintf "Got request for %s\n" path)
>>= fun () ->
C.log_s console (sprintf "Got request for %s\n" path) >>= fun () ->
H.respond_string ~status:`OK ~body:"hello mirage world!\n" ()
in

Expand Down

0 comments on commit 541bb3a

Please sign in to comment.