home
/
code
/
beam_stats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use module() instead of atom() where applicable
[beam_stats.git]
/
src
/
beam_stats_consumer.erl
diff --git
a/src/beam_stats_consumer.erl
b/src/beam_stats_consumer.erl
index
fa06695
..
eb8cbb7
100644
(file)
--- a/
src/beam_stats_consumer.erl
+++ b/
src/beam_stats_consumer.erl
@@
-52,7
+52,7
@@
-define(SIGNAL_CONSUMPTION , beam_stats_consumption_signal).
-record(state,
-define(SIGNAL_CONSUMPTION , beam_stats_consumption_signal).
-record(state,
- { consumer_module ::
atom
()
+ { consumer_module ::
module
()
, consumer_state :: term()
, consumption_interval :: non_neg_integer()
, beam_stats_queue :: queue()
, consumer_state :: term()
, consumption_interval :: non_neg_integer()
, beam_stats_queue :: queue()
@@
-62,7
+62,7
@@
%% Public API
%% ============================================================================
%% Public API
%% ============================================================================
--spec add(
atom
(), term()) ->
+-spec add(
module
(), term()) ->
supervisor:startchild_ret().
add(ConsumerModule, ConsumerOptions) ->
beam_stats_sup_consumers:start_child(ConsumerModule, ConsumerOptions).
supervisor:startchild_ret().
add(ConsumerModule, ConsumerOptions) ->
beam_stats_sup_consumers:start_child(ConsumerModule, ConsumerOptions).
This page took
0.025327 seconds
and
4
git commands to generate.