Skip to content

Commit

Permalink
Fix credo
Browse files Browse the repository at this point in the history
  • Loading branch information
caike committed Feb 13, 2024
1 parent 1cc72da commit db54148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/xogmios/chain_sync/messages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ defmodule Xogmios.ChainSync.Messages do
@doc """
Syncs with a particular era bound.
Values accepted are #{Map.keys(@era_bounds) |> Enum.map(&"`:#{&1}`") |> Enum.join(",\n ")}
Values accepted are #{Map.keys(@era_bounds) |> Enum.map_join(",\n ", fn key -> "`:#{key}`" end)}
The client will sync with the first block of the given era.
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/xogmios/state_query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Xogmios.StateQuery do
1. (Optional) A process reference. If none given, it defaults to the linked process `__MODULE__`.
2. The query to run. Support for [all available queries](https://ogmios.dev/mini-protocols/local-state-query/#network)
is actively being worked on. For the time being, it only accepts the following values: #{@allowed_queries |> Enum.map(&inspect/1) |> Enum.map(&"`#{&1}`") |> Enum.join(",")}
is actively being worked on. For the time being, it only accepts the following values: #{@allowed_queries |> Enum.map_join(",", fn query -> "`#{inspect(query)}`" end)}
"""
@spec send_query(pid() | atom(), atom()) :: {:ok, any()} | {:error, any()}
Expand Down

0 comments on commit db54148

Please sign in to comment.