Don't link snapshots
If a snapshot breaks a penciller clone, this shouldn't crash the main process.
This commit is contained in:
parent
082eabb65b
commit
c4e376ece5
3 changed files with 16 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue