Permalink
Browse files

Add timeout option

  • Loading branch information...
1 parent de5a304 commit 51a8e9f64749dcae322471120e4d5b77737c89f0 @devinus committed Aug 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/epgsql_pool_worker.erl
View
4 src/epgsql_pool_worker.erl
@@ -22,8 +22,10 @@ init(Args) ->
Database = proplists:get_value(database, Args),
Username = proplists:get_value(username, Args),
Password = proplists:get_value(password, Args),
+ Timeout = proplists:get_value(timeout, Args),
{ok, Conn} = pgsql:connect(Hostname, Username, Password, [
- {database, Database}
+ {database, Database},
+ {timeout, Timeout}
]),
{ok, #state{conn=Conn}}.

0 comments on commit 51a8e9f

Please sign in to comment.