Skip to content

Commit

Permalink
Merge pull request #41 from activesphere/fix-config-fetch
Browse files Browse the repository at this point in the history
use default json serializer
  • Loading branch information
ananthakumaran authored Sep 15, 2023
2 parents 100c73c + 249a300 commit 5e02f31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
- pull_request
jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
Expand Down
3 changes: 2 additions & 1 deletion lib/exq_scheduler/serializer.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
defmodule ExqScheduler.Serializer do
@serializer Application.fetch_env!(:exq_scheduler, :storage)[:json_serializer] || Poison
@storage Application.get_env(:exq_scheduler, :storage, [])
@serializer Keyword.get(@storage, :json_serializer, Poison)

def encode!(object, opts \\ []) do
@serializer.encode!(object, opts)
Expand Down

0 comments on commit 5e02f31

Please sign in to comment.