-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the connection pool in ownership and remove other pools (#130)
* Remove ownership pool and always use the connection pool * Remove poolboy and connection pools
- Loading branch information
Showing
33 changed files
with
123 additions
and
767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
%{"backoff": {:hex, :backoff, "1.1.1"}, | ||
"connection": {:hex, :connection, "1.0.2"}, | ||
"poolboy": {:hex, :poolboy, "1.5.1"}} | ||
%{"connection": {:hex, :connection, "1.0.2"}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
ExUnit.start([capture_log: true, assert_receive_timeout: 500, | ||
exclude: [:pool_overflow, :enqueue_disconnected, | ||
:queue_timeout_exit]]) | ||
ExUnit.start(capture_log: true, assert_receive_timeout: 500, exclude: [:queue_timeout_exit]) | ||
|
||
Code.require_file "../../test/test_support.exs", __DIR__ | ||
Code.require_file("../../test/test_support.exs", __DIR__) | ||
|
||
defmodule TestPool do | ||
use TestConnection, [pool: DBConnection.ConnectionPool, pool_size: 1] | ||
use TestConnection, pool: DBConnection.ConnectionPool, pool_size: 1 | ||
end | ||
|
||
{:ok, _} = TestPool.ensure_all_started() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
ExUnit.start([capture_log: true, assert_receive_timeout: 500, | ||
exclude: [:idle_timeout, :pool_overflow, :dequeue_disconnected, | ||
:queue_timeout_raise]]) | ||
ExUnit.start( | ||
capture_log: true, | ||
assert_receive_timeout: 500, | ||
exclude: [:idle_timeout, :queue_timeout_raise] | ||
) | ||
|
||
Code.require_file "../../test/test_support.exs", __DIR__ | ||
Code.require_file("../../test/test_support.exs", __DIR__) | ||
|
||
defmodule TestPool do | ||
use TestConnection, [pool: DBConnection.Ownership, pool_size: 1] | ||
use TestConnection, pool: DBConnection.Ownership, pool_size: 1 | ||
end | ||
|
||
{:ok, _} = TestPool.ensure_all_started() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.