You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2017/10/09 06:14:45 UTC
[couchdb] 06/07: move function declaration around for internal
consistency
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch 749-fix-couch_peruser-app-structure
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit c9d4ac85d5b8c5cc9e9824fa6e30ed734b7abb0a
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Mon Oct 9 08:12:01 2017 +0200
move function declaration around for internal consistency
---
src/couch_peruser/src/couch_peruser.erl | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/couch_peruser/src/couch_peruser.erl b/src/couch_peruser/src/couch_peruser.erl
index f820fe6..7943a9c 100644
--- a/src/couch_peruser/src/couch_peruser.erl
+++ b/src/couch_peruser/src/couch_peruser.erl
@@ -290,6 +290,13 @@ exit_changes(State) ->
is_stable() ->
gen_server:call(?MODULE, is_stable).
+-spec subscribe_for_changes() -> ok.
+subscribe_for_changes() ->
+ config:subscribe_for_changes([
+ {"couch_httpd_auth", "authentication_db"},
+ "couch_peruser"
+ ]).
+
% Mem3 cluster callbacks
% TODO: find out what type Server is
@@ -351,13 +358,6 @@ handle_info(restart_config_listener, State) ->
handle_info(_Msg, State) ->
{noreply, State}.
--spec subscribe_for_changes() -> ok.
-subscribe_for_changes() ->
- config:subscribe_for_changes([
- {"couch_httpd_auth", "authentication_db"},
- "couch_peruser"
- ]).
-
terminate(_Reason, _State) ->
%% Everything should be linked or monitored, let nature
%% take its course.
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.