Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Godspower-Eze committed Nov 29, 2023
1 parent e3dc54c commit fbac9f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/libp2p_port.ex
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ defmodule LambdaEthereumConsensus.Libp2pPort do
end

defp get_topic_name(topic) do
topic |> String.split("/") |> Enum.fetch!(3)
case topic |> String.split("/") |> Enum.fetch(3) do
{:ok, name} -> name
:error -> topic
end
end
end

0 comments on commit fbac9f3

Please sign in to comment.