Browse Source

fix rebar.config

Yuriy Zhloba 9 years ago
parent
commit
c4eb96e58d
4 changed files with 14 additions and 15 deletions
  1. 10 10
      include/epgsql_pool.hrl
  2. 2 3
      rebar.config
  3. 0 1
      src/epgsql_pool.erl
  4. 2 1
      src/epgsql_pool_worker.erl

+ 10 - 10
include/epgsql_pool.hrl

@@ -1,14 +1,14 @@
 
 -record(epgsql_connection_params, {
-    host :: string() | binary(),
-    port :: non_neg_integer(),
-    username :: string() | binary(),
-    password :: string() | binary(),
-    database :: string() | binary()
-}).
+          host :: string() | binary(),
+          port :: non_neg_integer(),
+          username :: string() | binary(),
+          password :: string() | binary(),
+          database :: string() | binary()
+         }).
 
 -record(epgsql_connection, {
-    sock :: pid(),
-    params :: #epgsql_connection_params{},
-    reconnect_attempt = 0 :: non_neg_integer()
-}).
+          sock :: pid(),
+          params :: #epgsql_connection_params{},
+          reconnect_attempt = 0 :: non_neg_integer()
+         }).

+ 2 - 3
rebar.config

@@ -1,5 +1,4 @@
 %%-*- mode: erlang -*-
-{require_otp_vsn, "17"}.
 
 {erl_opts, [debug_info,
             warn_missing_spec,
@@ -7,6 +6,6 @@
            ]}.
 
 {deps, [
-        {pooler, ".*", {git, "git://github.com/seth/pooler.git", "b6c522a67a1d067122705ef725535a8664dd8514"}},
-        {epgsql, ".*", {git, "git://github.com/epgsql/epgsql.git", {tag, "3.1.0"}}}
+        {pooler, ".*", {git, "https://github.com/seth/pooler", "b6c522a67a1d067122705ef725535a8664dd8514"}},
+        {epgsql, ".*", {git, "https://github.com/epgsql/epgsql", {tag, "3.1.0"}}}
        ]}.

+ 0 - 1
src/epgsql_pool.erl

@@ -30,7 +30,6 @@ start(PoolName0, InitCount, MaxCount, #epgsql_connection_params{} = ConnectionPa
     PoolName = epgsql_pool_utils:pool_name_to_atom(PoolName0),
     epgsql_pool_settings:set_connection_params(PoolName, ConnectionParams),
     MaxQueue = epgsql_pool_settings:get(pooler_max_queue),
-    {ok, _} = epgsql_pool_settings:get_connection_params(PoolName),
     PoolConfig = [{name, PoolName},
                   {init_count, InitCount},
                   {max_count, MaxCount},

+ 2 - 1
src/epgsql_pool_worker.erl

@@ -15,7 +15,8 @@
                 no_reply_keep_alive_timer :: reference() % timer to wait for reply from DB
                }).
 
-%% Module API
+
+ %% Module API
 
 -spec start_link(epgsql_pool:pool_name()) -> gs_start_link_reply().
 start_link(PoolName0) ->