Skip to content

Commit

Permalink
use connect instead of create
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragsoni committed May 3, 2020
1 parent e8c482d commit 6079cbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pgx_lwt_mirage/src/pgx_lwt_mirage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct
ch, ch
;;

let create stack =
let connect stack =
let open_connection = connect_stack stack in
(module struct
module T = struct
Expand Down
2 changes: 1 addition & 1 deletion pgx_lwt_mirage/src/pgx_lwt_mirage.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ module Make : functor
(CLOCK : Mirage_clock.MCLOCK)
(STACK : Mirage_stack.V4)
-> sig
val create : STACK.t -> (module Pgx_lwt.S.Pgx_impl)
val connect : STACK.t -> (module Pgx_lwt.S.Pgx_impl)
end
2 changes: 1 addition & 1 deletion unikernel/unikernel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct
let user = Key_gen.pguser () in
let password = Key_gen.pgpassword () in
let database = Key_gen.pgdatabase () in
let pgx = Pgx_mirage.create stack in
let pgx = Pgx_mirage.connect stack in
setup_database ~port ~host ~user ~password ~database pgx ()
>>= fun () -> print_users (get_users ~port ~host ~user ~password ~database pgx ())
;;
Expand Down

0 comments on commit 6079cbe

Please sign in to comment.