aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_stream_response/src/rest_stream_response_app.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-09-08 19:50:31 +0200
committerLoïc Hoguin <[email protected]>2013-09-08 19:50:31 +0200
commit7a7e144a0d79767f726ca9988a7b8fc752f998ae (patch)
treeae98a1cd8825841b6b4b134d0e7cf9fdc2945270 /examples/rest_stream_response/src/rest_stream_response_app.erl
parent630a8055412bb9622ca202ffb7008d418df78d5c (diff)
downloadcowboy-7a7e144a0d79767f726ca9988a7b8fc752f998ae.tar.gz
cowboy-7a7e144a0d79767f726ca9988a7b8fc752f998ae.tar.bz2
cowboy-7a7e144a0d79767f726ca9988a7b8fc752f998ae.zip
Convert the REST streaming example to a release
Diffstat (limited to 'examples/rest_stream_response/src/rest_stream_response_app.erl')
-rw-r--r--examples/rest_stream_response/src/rest_stream_response_app.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rest_stream_response/src/rest_stream_response_app.erl b/examples/rest_stream_response/src/rest_stream_response_app.erl
index a382d29..46857f4 100644
--- a/examples/rest_stream_response/src/rest_stream_response_app.erl
+++ b/examples/rest_stream_response/src/rest_stream_response_app.erl
@@ -26,7 +26,8 @@ start(_Type, _Args) ->
stop(_State) ->
ok.
-generate_rows(_Table, 0) -> ok;
+generate_rows(_Table, 0) ->
+ ok;
generate_rows(Table, N) ->
ets:insert(Table, {key(), val(), val()}),
generate_rows(Table, N - 1).