Skip to content

Commit 13769fc

Browse files
committed
Use proc_lib:spawn_link. Test on new OTP versions
1 parent 93467b8 commit 13769fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
otp_version: [21,22,23]
21+
otp_version: [25,26,27]
2222
os: [ubuntu-latest]
2323

2424
container:
2525
image: erlang:${{ matrix.otp_version }}
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929
- name: Compile
3030
run: make
3131
- name: Test

src/sidejob_supervisor.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ handle_call({start_child, Mod, Fun, Args}, _From, State) ->
110110
{reply, Reply, State2};
111111

112112
handle_call(spawn, _From, State) ->
113-
Pid = erlang:spawn_link(fun spawned_worker/0),
113+
Pid = proc_lib:spawn_link(fun spawned_worker/0),
114114
State2 = add_child(Pid, State),
115115
{reply, {ok, Pid}, State2};
116116

0 commit comments

Comments
 (0)