From 264d189947141c959db15a07c40d7299f1bddc11 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Tue, 4 Dec 2012 14:29:07 -0500 Subject: [PATCH] Update defaults --- src/wterl_conn.erl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wterl_conn.erl b/src/wterl_conn.erl index 7815a2d..6803609 100644 --- a/src/wterl_conn.erl +++ b/src/wterl_conn.erl @@ -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).