Skip to content

Commit

Permalink
Fix callback return type
Browse files Browse the repository at this point in the history
  • Loading branch information
caike committed Feb 12, 2024
1 parent 023a051 commit bd7d49d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/xogmios/chain_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ defmodule Xogmios.ChainSync do

@callback handle_block(map(), any()) ::
{:ok, :next_block, map()} | {:ok, map()} | {:ok, :close, map()}

@callback handle_connect(map()) :: {:ok, map()}
@callback handle_disconnect(String.t(), map()) :: :ok
@callback handle_connect(map()) ::
{:ok, map()}
@callback handle_disconnect(String.t(), map()) ::
{:ok, map()} | {:reconnect, non_neg_integer(), map()}

# The keepalive option is used to maintain the connection active.
# This is important because proxies might close idle connections after a few seconds.
Expand Down

0 comments on commit bd7d49d

Please sign in to comment.