clean map
This commit is contained in:
parent
91cff202f6
commit
753a50bf85
3 changed files with 46 additions and 45 deletions
|
|
@ -6,7 +6,7 @@ let handle_client request client =
|
|||
| None -> Dream.log "User does not exists" |> Lwt.return
|
||||
| Some user_id ->
|
||||
(* TODO catch marshal failure *)
|
||||
|
||||
Dream.log " SEND USER ISLAND";
|
||||
(* send user island state *)
|
||||
let state =
|
||||
match User.get_state user_id with
|
||||
|
|
@ -14,6 +14,7 @@ let handle_client request client =
|
|||
| Ok state -> state
|
||||
in
|
||||
let* () = Dream.send ~text_or_binary:`Text client (Network.marshal state) in
|
||||
Dream.log " SENDED USER ISLAND";
|
||||
|
||||
let rec loop () =
|
||||
match%lwt Dream.receive client with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue