diff options
Diffstat (limited to 'guide/loop_handlers.md')
-rw-r--r-- | guide/loop_handlers.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guide/loop_handlers.md b/guide/loop_handlers.md index 6d67c62..41f9e76 100644 --- a/guide/loop_handlers.md +++ b/guide/loop_handlers.md @@ -41,14 +41,14 @@ this message. -export([terminate/2]). init({tcp, http}, Req, Opts) -> - {loop, Req, undefined_state, 60000, hibernate}. + {loop, Req, undefined_state, 60000, hibernate}. info({reply, Body}, Req, State) -> - {ok, Req2} = cowboy_req:reply(200, [], Body, Req), - {ok, Req2, State}; + {ok, Req2} = cowboy_req:reply(200, [], Body, Req), + {ok, Req2, State}; info(Message, Req, State) -> - {loop, Req, State, hibernate}. + {loop, Req, State, hibernate}. terminate(Req, State) -> - ok. + ok. ``` |