Permalink
Browse files

Update defaults

  • Loading branch information...
1 parent 510b589 commit 264d189947141c959db15a07c40d7299f1bddc11 Gregory Burd committed Dec 4, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/wterl_conn.erl
View
@@ -84,8 +84,8 @@ init([]) ->
handle_call({open, Dir, Config, Caller}, _From, #state{conn=undefined}=State) ->
Opts = [{create, true},
- config_value(cache_size, Config, "100MB"),
- config_value(session_max, Config, 100)],
+ wterl:config_value(cache_size, Config, "512MB"),
+ wterl:config_value(session_max, Config, 100)],
{Reply, NState} = case wterl:conn_open(Dir, wterl:config_to_bin(Opts)) of
{ok, ConnRef}=OK ->
Monitor = erlang:monitor(process, Caller),
@@ -170,10 +170,6 @@ do_close(undefined) ->
do_close(ConnRef) ->
wterl:conn_close(ConnRef).
-%% @private
-config_value(Key, Config, Default) ->
- {Key, app_helper:get_prop_or_env(Key, Config, wterl, Default)}.
-
-ifdef(TEST).

0 comments on commit 264d189

Please sign in to comment.