Skip to content

Commit

Permalink
Fix a Dialyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Nov 6, 2024
1 parent c1b4304 commit 6cfe0d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gun.erl
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,16 @@ check_protocols_opt(Protocols) ->
end.

consider_tracing(ServerPid, #{trace := true}) ->
dbg:tracer(),
_ = dbg:tracer(),
_ = dbg:tpl(gun, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_http, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_http2, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_http3, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_raw, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_socks, [{'_', [], [{return_trace}]}]),
_ = dbg:tpl(gun_ws, [{'_', [], [{return_trace}]}]),
dbg:p(ServerPid, all);
_ = dbg:p(ServerPid, all),
ok;
consider_tracing(_, _) ->
ok.

Expand Down

0 comments on commit 6cfe0d1

Please sign in to comment.