Skip to content

Commit

Permalink
Fix wrong means name
Browse files Browse the repository at this point in the history
  • Loading branch information
yosukehara committed Aug 22, 2012
1 parent cffb66d commit 56b694e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/leo_ordning_reda.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
object :: binary() %% unstructured-data
}).

-define(env_send_after_time(),
case application:get_env(leo_ordning_redax, send_after_time) of
{ok, SendAfterTime} -> SendAfterTime;
-define(env_send_after_interval(),
case application:get_env(leo_ordning_redax, send_after_interval) of
{ok, SendAfterInterval} -> SendAfterInterval;
_ -> 100 %% 100msec
end).
2 changes: 1 addition & 1 deletion src/leo_ordning_reda_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ handle_call({stack, Straw}, From, #state{id = Id,
case stack_fun0(Id, Straw, State) of
{ok, #state{cur_size = CurSize,
stack = Stack} = NewState} when BufSize =< CurSize ->
timer:sleep(?env_send_after_time()),
timer:sleep(?env_send_after_interval()),
spawn(fun() ->
exec_fun(From, Module, Node, Stack)
end),
Expand Down

0 comments on commit 56b694e

Please sign in to comment.