Don't link snapshots

If a snapshot breaks a penciller clone, this shouldn't crash the main process.
This commit is contained in:
Martin Sumner 2018-07-10 10:25:20 +01:00
parent 082eabb65b
commit c4e376ece5
3 changed files with 16 additions and 2 deletions

View file

@ -94,6 +94,7 @@
terminate/2,
code_change/3,
ink_start/1,
ink_snapstart/1,
ink_put/4,
ink_mput/3,
ink_get/3,
@ -171,6 +172,12 @@
ink_start(InkerOpts) ->
gen_server:start_link(?MODULE, [InkerOpts], []).
-spec ink_snapstart(inker_options()) -> {ok, pid()}.
%% @doc
%% Don't link on startup as snapshot
ink_snapstart(InkerOpts) ->
gen_server:start(?MODULE, [InkerOpts], []).
-spec ink_put(pid(),
leveled_codec:ledger_key(),
any(),