Update to nimble pool 0.2
This commit is contained in:
parent
8d7d27c8d3
commit
aa9d628397
3 changed files with 6 additions and 6 deletions
|
@ -55,13 +55,13 @@ defmodule Majic.Pool do
|
|||
end
|
||||
|
||||
@impl NimblePool
|
||||
def handle_checkout(:checkout, _from, server) do
|
||||
{:ok, server, server}
|
||||
def handle_checkout(:checkout, _from, server, pool_state) do
|
||||
{:ok, server, server, pool_state}
|
||||
end
|
||||
|
||||
@impl NimblePool
|
||||
def handle_checkin(_, _, server) do
|
||||
{:ok, server}
|
||||
def handle_checkin(_, _, server, pool_state) do
|
||||
{:ok, server, pool_state}
|
||||
end
|
||||
|
||||
@impl NimblePool
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -43,7 +43,7 @@ defmodule Majic.MixProject do
|
|||
|
||||
defp deps do
|
||||
[
|
||||
{:nimble_pool, "~> 0.1"},
|
||||
{:nimble_pool, "~> 0.2"},
|
||||
{:mime, "~> 1.0"},
|
||||
{:plug, "~> 1.0", optional: true},
|
||||
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
|
||||
|
|
2
mix.lock
2
mix.lock
|
@ -13,7 +13,7 @@
|
|||
"makeup_elixir": {:hex, :makeup_elixir, "0.14.1", "4f0e96847c63c17841d42c08107405a005a2680eb9c7ccadfd757bd31dabccfb", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f2438b1a80eaec9ede832b5c41cd4f373b38fd7aa33e3b22d9db79e640cbde11"},
|
||||
"mime": {:hex, :mime, "1.3.1", "30ce04ab3175b6ad0bdce0035cba77bba68b813d523d1aac73d9781b4d193cf8", [:mix], [], "hexpm", "6cbe761d6a0ca5a31a0931bf4c63204bceb64538e664a8ecf784a9a6f3b875f1"},
|
||||
"nimble_parsec": {:hex, :nimble_parsec, "0.6.0", "32111b3bf39137144abd7ba1cce0914533b2d16ef35e8abc5ec8be6122944263", [:mix], [], "hexpm", "27eac315a94909d4dc68bc07a4a83e06c8379237c5ea528a9acff4ca1c873c52"},
|
||||
"nimble_pool": {:hex, :nimble_pool, "0.1.0", "ffa9d5be27eee2b00b0c634eb649aa27f97b39186fec3c493716c2a33e784ec6", [:mix], [], "hexpm", "343a1eaa620ddcf3430a83f39f2af499fe2370390d4f785cd475b4df5acaf3f9"},
|
||||
"nimble_pool": {:hex, :nimble_pool, "0.2.4", "1db8e9f8a53d967d595e0b32a17030cdb6c0dc4a451b8ac787bf601d3f7704c3", [:mix], [], "hexpm", "367e8071e137b787764e6a9992ccb57b276dc2282535f767a07d881951ebeac6"},
|
||||
"plug": {:hex, :plug, "1.10.3", "c9cebe917637d8db0e759039cc106adca069874e1a9034fd6e3fdd427fd3c283", [:mix], [{:mime, "~> 1.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "01f9037a2a1de1d633b5a881101e6a444bcabb1d386ca1e00bb273a1f1d9d939"},
|
||||
"plug_crypto": {:hex, :plug_crypto, "1.1.2", "bdd187572cc26dbd95b87136290425f2b580a116d3fb1f564216918c9730d227", [:mix], [], "hexpm", "6b8b608f895b6ffcfad49c37c7883e8df98ae19c6a28113b02aa1e9c5b22d6b5"},
|
||||
"telemetry": {:hex, :telemetry, "0.4.1", "ae2718484892448a24470e6aa341bc847c3277bfb8d4e9289f7474d752c09c7f", [:rebar3], [], "hexpm", "4738382e36a0a9a2b6e25d67c960e40e1a2c95560b9f936d8e29de8cd858480f"},
|
||||
|
|
Loading…
Reference in a new issue