Skip to content

Commit 82a5e3d

Browse files
committed
Merge pull request #1779 from pguyot/w30/fix-disterl-examples
Fix disterl example: do not start kernel These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 8effe63 + d75909e commit 82a5e3d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

examples/erlang/disterl.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
-export([start/0]).
2424

2525
start() ->
26-
{ok, _KernelPid} = kernel:start(normal, []),
2726
{ok, _NetKernelPid} = net_kernel:start('[email protected]', #{name_domain => longnames}),
2827
io:format("Distribution was started\n"),
2928
io:format("Node is ~p\n", [node()]),

examples/erlang/esp32/epmd_disterl.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ start() ->
3636

3737
distribution_start(Address) ->
3838
{ok, _EPMDPid} = epmd:start_link([]),
39-
{ok, _KernelPid} = kernel:start(normal, []),
4039
{X, Y, Z, T} = Address,
4140
Node = list_to_atom(lists:flatten(io_lib:format("atomvm@~B.~B.~B.~B", [X, Y, Z, T]))),
4241
{ok, _NetKernelPid} = net_kernel:start(Node, #{name_domain => longnames}),

0 commit comments

Comments
 (0)