Skip to content

Commit

Permalink
Make some internal types public
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Aug 6, 2023
1 parent c5b758e commit c7ba9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/xandra/cluster/control_connection/connected_node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Xandra.Cluster.ControlConnection.ConnectedNode do
alias Xandra.Connection.Utils

@type t() :: %__MODULE__{
socket: :gen_tcp.socket() | :ssl.socket(),
socket: Utils.socket(),
protocol_module: module(),
ip: :inet.ip_address(),
port: :inet.port_number(),
Expand Down
4 changes: 2 additions & 2 deletions lib/xandra/connection/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ defmodule Xandra.Connection.Utils do

alias Xandra.{ConnectionError, Error, Frame}

@typep transport :: :gen_tcp | :ssl
@typep socket :: :gen_tcp.socket() | :ssl.sslsocket()
@type transport :: :gen_tcp | :ssl
@type socket :: :gen_tcp.socket() | :ssl.sslsocket()

@spec recv_frame(transport, socket, protocol_format :: :v4_or_less | :v5_or_more, module | nil) ::
{:ok, Frame.t(), rest :: binary()} | {:error, :closed | :inet.posix()}
Expand Down

0 comments on commit c7ba9e2

Please sign in to comment.