%%% -*- erlang -*- %%% %%% This file is part of couchbeam released under the MIT license. %%% See the NOTICE for more information. -module(couchbeam_sup). -author('Benoit Chesneau'). -behaviour(supervisor). -export([start_link/0, init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> %% gen_server to cache UUIDs generated by the couchdb node. Uuids = {couchbeam_uuids, {couchbeam_uuids, start_link, []}, permanent, 2000, worker, [couchbeam_uuids]}, %% Note: View and Changes streaming now use spawn_link directly %% instead of supervisors (leveraging hackney's process-per-connection) {ok, {{one_for_one, 10, 3600}, [Uuids]}}.