Permalink
Browse files

ALlow multiple stat modules per application

  • Loading branch information...
1 parent b1c3778 commit d3913738d93e7687a6020075651bbbc280b47d13 @russelldb russelldb committed Oct 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/riak_core.erl
View
4 src/riak_core.erl
@@ -334,9 +334,11 @@ register(App, [{bucket_validator, ValidationMod}|T]) ->
register(App, T);
register(App, [{stat_mod, StatMod}|T]) ->
register_mod(App, StatMod, stat_mods),
+ register(App, T);
+register(App, [{stat_mods, StatMods}|T]) when is_list(StatMods) ->
+ [register_mod(App, StatMod, stat_mods) || StatMod <- StatMods],
register(App, T).
-
register_mod(App, Module, Type) when is_atom(Module), is_atom(Type) ->
case Type of
vnode_modules ->

0 comments on commit d391373

Please sign in to comment.