diff --git a/CHANGELOG.md b/CHANGELOG.md index c311f82..114ed07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,4 @@ ### Bugs Fixed * tres/secure_channel: Fix to interpolate terms when logging +* tres/message_handler: Fix to use `DynamicSupervisor` instead of `:simple_one_for_one` diff --git a/README.md b/README.md index 69efd9b..9628a3a 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ config :tres, ``` To use `Tres.Controller` with your code, set the handler callback_module to your callback module. -This module must implement the `Module.start_link/2` that returns `on_start`. +This module must implement the `Module.start_link/1` that returns `on_start`. Set the callback_args to the terms you want pass to the `start_link/2` callback function. @@ -35,7 +35,7 @@ defmodule Sample do use GenServer use Tres.Controller - def start_link(datapath_id, _start_args) do + def start_link([datapath_id, _start_args]) do GenServer.start_link(__MODULE__, [datapath_id]) end