Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix function_clause in childspec
Make couch_epi_functions:childspec's result match expectations of
couch_epi_functions:start_link function.
  • Loading branch information
rnewson committed Jul 13, 2015
1 parent bb5d37b commit 3d0e6a6b38cdeee165a3464a37f6d9357b798d27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
@@ -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
).

@@ -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,

0 comments on commit 3d0e6a6

Please sign in to comment.