Skip to content

Commit

Permalink
Fix keyword update
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Dec 11, 2023
1 parent 08fcc33 commit a99467d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flame/pool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ defmodule FLAME.Pool do

case Keyword.fetch(opts, :backend) do
{:ok, {backend, opts}} ->
Keyword.update!(runner_opts, :backend, {backend, Keyword.merge(opts, defaults)})
Keyword.put(runner_opts, :backend, {backend, Keyword.merge(opts, defaults)})

{:ok, backend} ->
Keyword.update!(runner_opts, :backend, {backend, defaults})
Keyword.put(runner_opts, :backend, {backend, defaults})

:error ->
backend = FLAME.Backend.impl()
Expand Down

2 comments on commit a99467d

@mruoss
Copy link

@mruoss mruoss commented on a99467d Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrismccord Any plans on releasing this fix? :)

@chrismccord
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already out :)

Please sign in to comment.