Permalink
Browse files

Move the state definition of the elli handler cordinator.

elli.hrl needs to be included by modules that modifies the req record.
  • Loading branch information...
1 parent a41f929 commit d5eee81a25b09e136a25400658fc5ce9dbc78859 @anha0825 anha0825 committed Nov 28, 2012
Showing with 6 additions and 8 deletions.
  1. +0 −8 include/elli.hrl
  2. +6 −0 src/elli.erl
View
@@ -27,14 +27,6 @@
-type timestamp() :: {integer(), integer(), integer()}.
-
--record(state, {socket,
- acceptors,
- open_reqs,
- options,
- callback :: callback()
-}).
-
-record(req, {
method :: http_method(),
path :: [binary()],
View
@@ -22,6 +22,12 @@
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
+-record(state, {socket,
+ acceptors,
+ open_reqs,
+ options,
+ callback :: callback()
+}).
%%%===================================================================
%%% API

0 comments on commit d5eee81

Please sign in to comment.