Skip to content

Commit

Permalink
Adress review comments
Browse files Browse the repository at this point in the history
Use host_type_or_global type
Wrong line
  • Loading branch information
arcusfelis committed Jun 19, 2024
1 parent f33f178 commit f8aba39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/c2s/mongoose_c2s.erl
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@

-export_type([packet/0, data/0, state/0, state/1, fsm_res/0, fsm_res/1, retries/0, listener_opts/0]).

%% mongoose_http_handler instrumentation
-spec instrumentation() -> [mongoose_instrument:spec()].
instrumentation() ->
lists:flatmap(fun instrumentation/1, [global | ?ALL_HOST_TYPES]).

-spec instrumentation(global | mongooseim:host_type()) -> [mongoose_instrument:spec()].
-spec instrumentation(mongooseim:host_type_or_global()) -> [mongoose_instrument:spec()].
instrumentation(global) ->
[{xmpp_stanza_size_sent, #{},
#{metrics => #{byte_size => histogram}}},
Expand Down

0 comments on commit f8aba39

Please sign in to comment.