Skip to content

Commit

Permalink
fix: include ID in network usage computation
Browse files Browse the repository at this point in the history
  • Loading branch information
abc3 committed Dec 16, 2024
1 parent b1aaec2 commit f2fe406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/supavisor/db_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ defmodule Supavisor.DbHandler do

{_, client_stats} =
if not data.proxy,

Check warning on line 316 in lib/supavisor/db_handler.ex

View workflow job for this annotation

GitHub Actions / Code style

Avoid negated conditions in if-else blocks.

Check warning on line 316 in lib/supavisor/db_handler.ex

View workflow job for this annotation

GitHub Actions / Code style

Function body is nested too deep (max depth is 2, was 3).
do: Telem.network_usage(:client, data.client_sock, data.client_stats),
do: Telem.network_usage(:client, data.client_sock, data.id, data.client_stats),
else: {nil, data.client_stats}

%{data | stats: stats, active_count: 0, client_stats: client_stats}
Expand Down

0 comments on commit f2fe406

Please sign in to comment.