Skip to content

Commit

Permalink
Release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Aug 27, 2024
1 parent 978ad96 commit 8d24259
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.0 (2024-08-27)

### Bug Fixes
- Forward `:boot_timeout` to backend options

### Enhancements
- Optimize concurrent runner booting

## 0.3.0 (2024-07-26)

### Bug Fixes
Expand Down Expand Up @@ -48,4 +56,3 @@
## 0.1.4 (2023-12-06)

Public release 🔥

10 changes: 6 additions & 4 deletions lib/flame/runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,16 @@ defmodule FLAME.Runner do
code_sync_opts: Keyword.get(opts, :code_sync, false)
}

base_backend_opts = Keyword.take(opts, [:boot_timeout])

{backend, backend_init} =
case Keyword.fetch!(opts, :backend) do
backend when is_atom(backend) ->
opts = Application.get_env(:flame, backend) || []
{backend, backend.init(opts)}
backend_opts = Keyword.merge(base_backend_opts, Application.get_env(:flame, backend) || [])
{backend, backend.init(backend_opts)}

{backend, opts} when is_atom(backend) and is_list(opts) ->
{backend, backend.init(opts)}
{backend, backend_opts} when is_atom(backend) and is_list(backend_opts) ->
{backend, backend.init(Keyword.merge(base_backend_opts, backend_opts))}
end

%Runner{runner | backend: backend, backend_init: backend_init}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule FLAME.Runner.MixProject do
def project do
[
app: :flame,
version: "0.3.0",
version: "0.4.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 8d24259

Please sign in to comment.