chore(quic): fix format

This commit is contained in:
William Yang 2021-06-17 09:02:34 +02:00
parent b4a9d663ae
commit d1978aaaf2
1 changed files with 7 additions and 7 deletions

View File

@ -56,12 +56,12 @@ setopts(_Socket, _Opts) ->
ok. ok.
getopts(_Socket, _Opts) -> getopts(_Socket, _Opts) ->
%% todo %% @todo
{ ok, [{high_watermark, 0}, {ok, [{high_watermark, 0},
{high_msgq_watermark, 0}, {high_msgq_watermark, 0},
{sndbuf, 0}, {sndbuf, 0},
{recbuf, 0}, {recbuf, 0},
{buffer,80000}]}. {buffer,80000}]}.
fast_close(Stream) -> fast_close(Stream) ->
quicer:close_stream(Stream), quicer:close_stream(Stream),
@ -77,7 +77,7 @@ ensure_ok_or_exit(Fun, Args = [Sock|_]) when is_atom(Fun), is_list(Args) ->
{error, Reason} -> {error, Reason} ->
fast_close(Sock), fast_close(Sock),
exit({shutdown, Reason}); exit({shutdown, Reason});
Result -> Result Result -> Result
end. end.
async_send(Stream, Data, Options) when is_list(Data) -> async_send(Stream, Data, Options) when is_list(Data) ->