couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couchdb-couch-epi git commit: Fix function_clause in childspec
Date Mon, 13 Jul 2015 12:39:16 GMT
Repository: couchdb-couch-epi
Updated Branches:
  refs/heads/master bb5d37bbe -> 3d0e6a6b3


Fix function_clause in childspec

Make couch_epi_functions:childspec's result match expectations of
couch_epi_functions:start_link function.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/commit/3d0e6a6b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/tree/3d0e6a6b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/diff/3d0e6a6b

Branch: refs/heads/master
Commit: 3d0e6a6b38cdeee165a3464a37f6d9357b798d27
Parents: bb5d37b
Author: Robert Newson <rnewson@apache.org>
Authored: Mon Jul 13 13:21:07 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon Jul 13 13:21:07 2015 +0100

----------------------------------------------------------------------
 README.md                   | 4 ++--
 src/couch_epi_functions.erl | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/3d0e6a6b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 7be741f..b3f2b5f 100644
--- a/README.md
+++ b/README.md
@@ -89,9 +89,9 @@ Any application that wants to register some functions for a service
 could add an entry in its supervision tree with something like:
 
     Spec = couch_epi_functions:childspec(
-        appname_stats, %% Id
+        appname_stats, %% child id
         appname, %% CurrentApp
-        {epi_key, my_service},
+        my_service,
         my_module %% Module
     ).
 

http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/3d0e6a6b/src/couch_epi_functions.erl
----------------------------------------------------------------------
diff --git a/src/couch_epi_functions.erl b/src/couch_epi_functions.erl
index 472934c..86687a7 100644
--- a/src/couch_epi_functions.erl
+++ b/src/couch_epi_functions.erl
@@ -37,13 +37,13 @@
 %% API Function Definitions
 %% ------------------------------------------------------------------
 
-childspec(Id, App, EpiKey, Module) ->
+childspec(Id, App, Key, Module) ->
     {
         Id,
         {?MODULE, start_link, [
             App,
-            EpiKey,
-            Module,
+            {epi_key, Key},
+            {modules, [Module]},
             []
         ]},
         permanent,


Mime
View raw message