Update README

This commit is contained in:
Eishun Kondoh 2018-05-02 16:24:33 +09:00
parent a316bf2416
commit 6ef1a60503
2 changed files with 3 additions and 2 deletions

View file

@ -7,3 +7,4 @@
### Bugs Fixed ### Bugs Fixed
* tres/secure_channel: Fix to interpolate terms when logging * tres/secure_channel: Fix to interpolate terms when logging
* tres/message_handler: Fix to use `DynamicSupervisor` instead of `:simple_one_for_one`

View file

@ -25,7 +25,7 @@ config :tres,
``` ```
To use `Tres.Controller` with your code, set the handler callback_module to your callback module. 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. 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 GenServer
use Tres.Controller 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]) GenServer.start_link(__MODULE__, [datapath_id])
end end