Skip to content

Commit

Permalink
Fix child_spec and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
caike committed Feb 12, 2024
1 parent bd7d49d commit cad1741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An Elixir client for [Ogmios](https://github.com/CardanoSolutions/ogmios).
Mini-Protocols supported by this library:

- [x] Chain Synchronization
- [ ] State Query (partially supported)
- [x] State Query (partially supported)
- [ ] Mempool Monitoring
- [ ] Tx Submission

Expand Down
5 changes: 2 additions & 3 deletions lib/xogmios/chain_sync/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ defmodule Xogmios.ChainSync.Connection do
@reconnect_interval 5_000

def child_spec(opts) do
Supervisor.child_spec(
%{},
%{
id: __MODULE__,
start: {__MODULE__, :start_link, [opts]},
shutdown: 5_000,
restart: Keyword.get(opts, :restart, :transient),
type: :worker
)
}
end

@impl true
Expand Down

0 comments on commit cad1741

Please sign in to comment.