Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure duplicates don't exist in the registered modules

Allowing duplicates was breaking the pipe and kv unit tests.
  • Loading branch information...
commit cc9368039799a037098d426da932157d91536f2a 1 parent 1d06308
@Vagabond Vagabond authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/riak_core.erl
View
3  src/riak_core.erl
@@ -321,7 +321,8 @@ register_mod(App, Module, Type) when is_atom(Module), is_atom(Type) ->
undefined ->
application:set_env(riak_core, Type, [{App,Module}]);
{ok, Mods} ->
- application:set_env(riak_core, Type, [{App,Module}|Mods])
+ application:set_env(riak_core, Type,
+ lists:usort([{App,Module}|Mods]))
end.
%% @spec add_guarded_event_handler(HandlerMod, Handler, Args) -> AddResult
Please sign in to comment.
Something went wrong with that request. Please try again.