Skip to content

Error in handle_call with :restart_child - Missing parameter#16

Open
f-lombardo wants to merge 1 commit into
benjamintanweihao:masterfrom
f-lombardo:master
Open

Error in handle_call with :restart_child - Missing parameter#16
f-lombardo wants to merge 1 commit into
benjamintanweihao:masterfrom
f-lombardo:master

Conversation

@f-lombardo

Copy link
Copy Markdown

Steps to reproduce the error:
iex(2)> {:ok, sup_pid} = ThySupervisor.start_link([])
{:ok, #PID<0.157.0>}
iex(3)> {:ok, child_pid} = ThySupervisor.start_child(sup_pid, {ThyWorker, :start_link, []})
{:ok, #PID<0.159.0>}
iex(4)> {:ok, child_pid} = ThySupervisor.restart_child(sup_pid, child_pid, {ThyWorker, :start_link, []})
** (EXIT from #PID<0.143.0>) evaluator process exited with reason: an exception was raised:
** (FunctionClauseError) no function clause matching in ThySupervisor.handle_call/3

@f-lombardo

Copy link
Copy Markdown
Author

Sorry, I didn't see that this is the same as #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant