Skip to content

Commit 3b6acc3

Browse files
committed
Fix task supervisor name
1 parent 2ed048a commit 3b6acc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/mix-and-otp/task-and-gen-tcp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Now we need to change `loop_acceptor/1` to use `Task.Supervisor` to serve each r
228228
```elixir
229229
defp loop_acceptor(socket) do
230230
{:ok, client} = :gen_tcp.accept(socket)
231-
{:ok, pid} = Task.Supervisor.start_child(KV.BucketSupervisor, fn -> serve(client) end)
231+
{:ok, pid} = Task.Supervisor.start_child(KV.ServerSupervisor, fn -> serve(client) end)
232232
:ok = :gen_tcp.controlling_process(client, pid)
233233
loop_acceptor(socket)
234234
end

0 commit comments

Comments
 (0)