Przeglądaj źródła

Use maps for child spec example

pull/1789/head
Peter Saxton 7 lat temu
committed by GitHub
rodzic
commit
6bcbbf7526
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      priv/templates/sup.erl

+ 2
- 1
priv/templates/sup.erl Wyświetl plik

@ -26,7 +26,8 @@ start_link() ->
%% Supervisor callbacks
%%====================================================================
%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
%% Child :: #{id => Id, start => {M, F, A}}
%% Optional keys are restart, shutdown, type, modules.
init([]) ->
{ok, { {one_for_all, 0, 1}, []} }.

Ładowanie…
Anuluj
Zapisz