Switch to start_link
Start all processes linked - to collapse the whole tree if one process fails
This commit is contained in:
parent
92bd2513c1
commit
082eabb65b
7 changed files with 20 additions and 18 deletions
|
@ -315,7 +315,7 @@ book_start(RootPath, LedgerCacheSize, JournalSize, SyncStrategy) ->
|
|||
%% comments on the open_options() type
|
||||
|
||||
book_start(Opts) ->
|
||||
gen_server:start(?MODULE, [set_defaults(Opts)], []).
|
||||
gen_server:start_link(?MODULE, [set_defaults(Opts)], []).
|
||||
|
||||
|
||||
-spec book_tempput(pid(), any(), any(), any(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue