Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Sep 19, 2024
1 parent 942356f commit f3e5cc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/quicer_local_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

-include("quicer_types.hrl").

-type local_stream_opts() :: stream_opts() | proplists:proplist().
-type cb_ret() :: quicer_stream:cb_ret().
-type cb_state() :: quicer_stream:cb_state().

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Local Stream Callbacks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -79,10 +83,6 @@
handle_continue/2
]).

-type local_stream_opts() :: stream_opts() | proplists:proplist().
-type cb_ret() :: quicer_stream:cb_ret().
-type cb_state() :: quicer_stream:cb_state().

-spec start_link(module(), connection_handle(), local_stream_opts()) -> gen_server:start_ret().
start_link(CallbackModule, Connection, Opts) ->
start_link(CallbackModule, Connection, Opts, []).
Expand Down
8 changes: 4 additions & 4 deletions src/quicer_remote_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
start_link/6
]).

-type remote_stream_opts() :: stream_opts() | proplists:proplist().
-type cb_ret() :: quicer_stream:cb_ret().
-type cb_state() :: quicer_stream:cb_state().

-callback init_handoff(stream_handle(), stream_opts(), connection_handle(), new_stream_props()) ->
cb_ret().
%% Prepare callback state before ownership handoff
Expand Down Expand Up @@ -82,10 +86,6 @@
handle_continue/2
]).

-type remote_stream_opts() :: stream_opts() | proplists:proplist().
-type cb_ret() :: quicer_stream:cb_ret().
-type cb_state() :: quicer_stream:cb_state().

-spec start_link(module(), connection_handle(), remote_stream_opts()) -> gen_server:start_ret().
start_link(CallbackModule, Connection, Opts) ->
start_link(CallbackModule, Connection, Opts#{is_local => false}, []).
Expand Down

0 comments on commit f3e5cc3

Please sign in to comment.