Browse Source

Changed function name to something that actually exists and works.

Raoul Hess 10 years ago
parent
commit
a56cc2f61d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mysql_poolboy.erl

+ 1 - 1
src/mysql_poolboy.erl

@@ -31,7 +31,7 @@
 %% @doc Adds a pool to the started mysql_poolboy application.
 add_pool(PoolName, PoolArgs, MysqlArgs) ->
     PoolSpec = child_spec(PoolName, PoolArgs, MysqlArgs),
-    supervisor:add_child(mysql_poolboy_sup, PoolSpec).
+    supervisor:start_child(mysql_poolboy_sup, PoolSpec).
 
 %% @doc Returns a mysql connection to the given pool.
 checkin(PoolName, Connection) ->